I am creating an RCP app which uses a host of third-party plugins. Some of these plugins contribute menus, menu items, and toolbar buttons that I do not wish to display. How can I determine which plugins are contributing these menus, menu items, and toolbar buttons and how can I disable them from doing so?
The Window menu allows you to open and close views and perspectives. It also allows you to bring up the Preferences dialog. The Help menu can be used to bring up the Help window, Eclipse Marketplace view or Install new plug-ins. The about Eclipse menu item gives you version information.
I find that if you are currently using a base perspective that comes standard with the Eclipse install you need to: "Window -> Save Perspective As..." first. Then you can just customise the tool bar as you please. Correct, modifying a "built-in" perspective like Debug etc. won't work.
menus extension point. Right-click on the extension point and select New menuContribution. Create a new menu contribution with the "menu:org. eclipse.
To inspect details of menu, toolbar contributions etc.
org.eclipse.pde.runtime
Use activities to remove the UI contribution. The "active action definition identifier" value provided by ALT-SHIFT-F2 is the one to use as the pattern in the activityPatternBinding specification. See this question for more info on removing unwanted UI contributions.
Note that when using activities to remove unwanted UI contributions, sometimes you will need to specify the UI contributions' plug-in id and sometimes you won't depending on the individual contribution.
NB: The Plug-in Registry view can be also used to find the IDs for contributions, although you'll have to do some searching.
Alt + Shift + F2
then click some menu.
You can know contributor and menu URI.
Alt + Shift + F1 : inspect current active part and selection.
Alt + Shift + F3 : inspector contributor of Widget or item.
You needs plugin-spy plugin in runtime.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With