How to define a org.eclipse.ui.menus contribution for sub-context-menus [message #841454] |
Wed, 11 April 2012 06:23  |
Eclipse User |
|
|
|
Hello all,
I am trying to contribute to any popup menu by using the
org.eclipse.ui.menus extension point. But instead of placing the menu on
the first level of the context menu, it should appear in a sub-menu of
the context menu. More specifically in the 'Compare with' menu.
If I would use the popupMenus extension point, the menubarPath would be
'compareWithMenu/compareWithGroup'. But with the menus extension point I
haven't found a way to specify the location (other than in the first
level of the context menu)
My extension looks like this:
<menuContribution locationURI="menu:org.eclipse.ui.popup.any?after=???">
<command
commandId="org.example.MyCommand"
id="org.example.MyMenuItem"
label="..."
style="push">
</command>
</menuContribution>
But it seems to be not possible to specify a path in the 'after'
parameter. Whatever I specify , it either doesn't show up or only shows
in the first level (e.g. 'additions'). Does anyone know how this works?
TIA,
Rüdiger
|
|
|
|
|
|
|
|
|
Re: How to define a org.eclipse.ui.menus contribution for sub-context-menus [message #856116 is a reply to message #855341] |
Wed, 25 April 2012 07:34  |
Eclipse User |
|
|
|
Craig Foote wrote on Tue, 24 April 2012 14:31So I guess to add to "compareWith" we need to either use another "popupMenu" extension or programmatically add to it?
Or contribute the skeleton of the compareWith menu and all of its separators using o.e.ui.menus.
The correct matching locationURI is popup:compareWithMenu?after=compareWithGroup
Quote:
I've been meaning to ask, is the Common Navigator Framework going to be updated to use the Command Framework rather than popupMenu extensions and Actions? Same for PropertySheet?
That would be ideal, but probably not. AFAIK no one is looking at the CNF at the moment.
PW
|
|
|
Powered by
FUDForum. Page generated in 0.06612 seconds