I work in an RCP application and I have an idea which data model is an instance of IResources. When the popup menu is visible, I find the commands made by other plugins that I would like to remove.
Code example:
1 MenuManager menuManager = new MenuManager ();
2 mm.setRemoveAllWhenShown (true);
3 Menu menu = menuManager.createContextMenu (this.treeViewer.getControl ());
4 this.treeViewer.getControl (). SetMenu (menu);
5 getSite (). RegisterContextMenu (menuManager, this.treeViewer);
If I comment on line 5, the context menu does not appear.
Can I use the contribution menu from the plugin.xml file and delete the contributions of other plugins?
Note. My popup menu is declarative and it is in the plugin.xml file.
Thanks in advance
eclipse eclipse-plugin eclipse-rcp
yeraycaballero
source share