Community
Participate
Working Groups
I would like to be able to contribute a menu (or actions) programmatically. I want to add a submenu to a context menu from a plugin, but will only find out how many entries it will have when my plug-in is loaded. AFAIK, there is no API for doing programmatically what can be accomplished by the following XML: <extension point="org.eclipse.ui.popupMenus"> <viewerContribution targetID="#CompilationUnitRulerContext" id="QuickDiffTest.CompilationUnitEditorContribution"> <menu label="%quickdiff.menu.label" id="quickdiff.menu"> </menu> </viewerContribution> </extension> See also http://dev.eclipse.org/newslists/news.eclipse.tools/msg31798.html
Moving Dougs bugs
Assigning to component owner PW
This item has been fixed/superceded by the menu contribution mechanism - bug 154130 The menu can be added and a dynamic element inserted from the XML. PW