How to get rid of unwanted menu contributions registered against MenuUtil.ANY_POPUP [message #844838] |
Sat, 14 April 2012 08:17  |
Eclipse User |
|
|
|
I'm trying to use "org.eclipse.ui.menus" to populate my popup menu for viewer in my editor. I have registered menuContribution against "popup:my-id" and I have registered context menu with that id:
getSite().registerContextMenu("my-id", menuManager, treeViewer);
My contributions are showing up but unfortunately I've got many other menu items like "Run As", "Debug", "Validate", ... which do not make any sense in context of my menu. Is there any elegant way to get rid of them?
Inelegant way would be to extend internal class PopupMenuExtender and reimplement addMenuContributions without adding contributions registered against MenuUtil.ANY_POPUP.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03136 seconds