Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Defining position of menu item in Project Explorer context menu
Defining position of menu item in Project Explorer context menu [message #1744703] Thu, 29 September 2016 14:51
Alexander Fichtinger is currently offline Alexander FichtingerFriend
Messages: 57
Registered: January 2013
Member
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! =)









Previous Topic:Lock file in use
Next Topic:Cannot get com.ibm.sample.zip.creation.ZipBuilder plugin to be picked up by Mars Eclipse 4.5.2
Goto Forum:
  


Current Time: Tue Jun 19 04:52:32 GMT 2018

Powered by FUDForum. Page generated in 0.01782 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top