Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get(know) the menuid of a specific menu in eclipse?

I'm trying to add a submenu to Package-Explorer's project context menu. But, I can't find the menuid of that menu.

So my question is how to find a menuid in eclipse?

Thanks very much for any help.

like image 630
Temple Wing Avatar asked Jul 25 '12 04:07

Temple Wing


People also ask

How do I open the context menu in Eclipse?

option is available. or simply you can use shortcut to move: Alt+Shift+V . if it wasn't enabled or doesn't exist, in eclipse go to Window menu, select Customize perspective... a windows with for tabs will appear. select Menu visibility tab then expand Refactor , then tic the Move...

How to add custom menu in eclipse?

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

What is the Eclipse menu?

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.


1 Answers

The Plugin Spy gives you easily information about the running UI.

Press "Alt+Shift+F1" to get information about the current running Eclipse plugin / data types / screen.

Press "Alt + Shift + F2" and select a menu to see who is contributing this menu.

for more information:

http://www.vogella.com/articles/EclipseCodeAccess/article.html#pluginspy

For Eg: Plugin Spy for PackageExplorer itself will show like this :
PackageExplorer SPY

and for popup menu in the packaghe explorer for e.g. for refresh it shows like this :
Refresh SPY

like image 100
Syam Avatar answered Oct 16 '22 08:10

Syam