Run Menu order [message #491274] |
Tue, 13 October 2009 18:11  |
Eclipse User |
|
|
|
Hi,
I'm developing an RCP application with a large set of plugins from the Eclipse IDE.
To simplify the usability of our interface, we provides some activities and capabilities
to filter the menu items and toolbars.
Here is my problem:
When we activate some capabilities that contains reference to the org.eclipse.debug.ui
plugin, the org.eclipse.debug.ui plugin makes contribution to our main menu by adding the
"Run" menu item. Moreover the item appears at the end of the menu as the last item (after
the window and help menu). Since my rcp doesn't provide any contribution item in the run
menu (no command, no action), I don't know how to force this menu to appear before the
window menu.
I tried to add the following code in my applicationActionBarAdvisor but it doesnt work:
...
final MenuManager runMenuManager = new MenuManager("&Run", "org.eclipse.ui.run");
menuBar.add(runMenuManager);
runMenuManager.setActionDefinitionId("org.eclipse.ui.run");
runMenuManager.add(new Separator(ICommonMenuConstants.GROUP_TOP));
runMenuManager.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
// WINDOW
final MenuManager windowMenuManager = new MenuManager(
"&Window",IWorkbenchActionConstants.M_WINDOW);
menuBar.add(windowMenuManager);
...
Any idea?
Thanks
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.29722 seconds