Q regarding order of contributed menus to popup menus [message #331698] |
Wed, 17 September 2008 02:33  |
Eclipse User |
|
|
|
Originally posted by: no.ddress.now
So I am able to add a menu to the JDT Editor and Outline popup menus
and, functionally, they work.
The problem is that the menu location in the popup menu is not
consistant for path="group.show". For the JDT Editor, my menu is being
added immeditely *above* "Show In" and for the JDT Outline, it is
immediately *below* "Show In".
If I specify path="additions" for both, then my menu shows up
immediately above "Run" in the JDT Editor popup menu and immediately
below "Restore from local history" in the Outline popup menu.
Is there a way to enforce/ensure consistent placement of my menu? Or,
is there something incorrect about my configuration?
<extension
point="org.eclipse.ui.popupMenus">
<viewerContribution
id="net.certiv.visualization.cgv.callgraphActions"
targetID="#CompilationUnitEditorContext">
<menu
id="callGraphEditorMenu"
label="Call Graph"
path="group.show">
<separator name="group1" />
</menu>
<action
...
</action>
</viewerContribution>
<objectContribution
adaptable="false"
id="net.certiv.visualization.cgv.callgraphActions1"
objectClass="org.eclipse.jdt.core.IMember">
<menu
id="callGraphViewMenu"
label="Call Graph"
path="group.show">
<separator name="group2" />
</menu>
<action
...
</action>
</objectContribution>
</extension>
Thanks,
Gerald
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03856 seconds