how to remove the "Run" actionset from menu? [message #502978] |
Thu, 10 December 2009 09:05  |
Eclipse User |
|
|
|
Hi,
I have a problem linked to the menus of my RCP application.
I've seen that by default both "Run" and "Search" items are visible.
Is it possible to hide them?
Overriding the WorkbenchWindowAdvisor's postWindowCreate method I succeded to hide the "Search" using this instruction:
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().hideActionSet( "org.eclipse.search.searchActionSet");
I tried the following for the "Run":
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().hideActionSet( "org.eclipse.debug.ui.launchActionSet");
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().hideActionSet( "org.eclipse.debug.ui.debugActionSet");
... but it still stay there, even if its sub-menus are empty.
Any advice?
Thanks,
Le
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04728 seconds