Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine which eclipse plugins are contributing to menus and toolbars and stop them

Tags:

java

eclipse

rcp

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?

like image 614
tekumara Avatar asked Jun 01 '11 23:06

tekumara


People also ask

What are the typical menus of the Eclipse editor?

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.

How do I change my toolbar in Eclipse?

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.

How to add menu item in eclipse plugin?

menus extension point. Right-click on the extension point and select New menuContribution. Create a new menu contribution with the "menu:org. eclipse.


2 Answers

To inspect details of menu, toolbar contributions etc.

  • Load the Eclipse Plug-in Spy in your RCP application by including the plug-in org.eclipse.pde.runtime
  • To inspect the current selection, press ALT-SHIFT-F1
  • To inspect menus, press ALT-SHIFT-F2 and then select the menu item

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.

like image 167
tekumara Avatar answered Oct 26 '22 18:10

tekumara


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.

like image 39
jeeeyul Avatar answered Oct 26 '22 19:10

jeeeyul