|dynamic PopupMenu on Part [message #1343776]
||Fri, 09 May 2014 12:56
| Beat Schaller
Registered: July 2009
We are creating in an editor area programmatically the MInputParts. This MInputParts are created under the MPartStack.|
Now I wan't to add an MPopupMenu to each of these Parts to do some actions part-wide. So how can I ad more actions to the 'part' menu (like the 'close' PopupMenu)? Is my only option to provide a toolbar in the part? It would be very nice to just add those action under the close action.
Why isn't it possible under the application model - Menu Contribution to add over the model editor an MPopupMenu? There are only 5 other choices (Separator, Menu, Handled MenuItem, Direct MenuItem, DynamicMenuContribution)?
Do I really have to iterate over application.getMenuContributions and compare the id's to get the menu? no menuService, another way?
And last Question - if I define in MenuContribution my menu. Can I use it in different controls or do I have to clone them?
Thx for any help
Powered by FUDForum
. Page generated in 0.01689 seconds