|
Re: org.eclipse.ui.menus [message #998014 is a reply to message #997559] |
Wed, 09 January 2013 07:35 |
|
Hi Markus,
Could you tell me/us where the desired menu should appear?
If the menu is a kind of a pulldown menu(i.e. in a Toolbar), then you could use a command instead of a menu.
For that command you then choose the style "pulldown" and in order to attach items to that pulldown-command you have to create a second menuContribution with menu:"id of the pulldown-command". To that second menuContribution you can now attach all the childelements of the pulldown command.
To modify the pulldown command at runtime you´ll then have to implement the org.eclipse.ui.commands.IElementUpdater and use the org.eclipse.ui.menus.UIElement.setText(String) method to alternate the text or whatever you want.
If this solution does not fit, you´ll have to use a dynamic instead of a menu.
Could you please go a bit more into detail, so that I/we get to know what your aim is?
The better the question, the better the answer
Do not hesitate to ask, if you need further information...
Best regards,
Simon
|
|
|
Powered by
FUDForum. Page generated in 0.02848 seconds