Defining position of menu item in Project Explorer context menu [message #1744703] |
Thu, 29 September 2016 10:51  |
Eclipse User |
|
|
|
Hey guys,
we are adding a menu item to the context menu item of the Project Explorer.
OVERVIEW
======================================================
This works fine, with the following code in the plugin.xml:
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu?after=export">
<command
commandId="com.ourMenuEntry"
mnemonic="P"
label="%doSomething" >
</command>
</menuContribution>
</extension>
With this code our menu entry appears after the menu entry "Export...".
We checked the ID of the "Export"-menu entry with the Plugin Spy, and we used "export", because it's the active contribution item identifier.
===============================================
OUR PROBLEM
NOW.....
we want that our menu entry is the first one in the Project Explorer context menu.
But the first menu entry is "New" (which has sub-menu entries) and we do not know which ID we should use, in the "after"-property...
Is there a way to find this out? Or is there another way to define the place of the menu entry, like an index or something?
Thanks for your help + kind regards! =)
|
|
|
|
Powered by
FUDForum. Page generated in 0.09047 seconds