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: 62
Registered: January 2013
Hey guys,

we are adding a menu item to the context menu item of the Project Explorer.



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">
               label="%doSomething" >

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.



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:Kepler: Can not exit after -clean
Goto Forum:

Current Time: Sun Nov 18 05:39:51 GMT 2018

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

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

Back to the top