[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.cdt] MenuManager ID to locationURI mapping
|
- From: pts001@xxxxxxxxx (Peter Saunders)
- Date: Thu, 16 Jul 2009 11:07:15 +0000 (UTC)
- Newsgroups: eclipse.tools.cdt
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Hi
I'm attempting to add a context menu to a new editor plug-in. I have
created
and registered the Menu as follows:
MenuManager mgr = new MenuManager("MyMenuManagerText",
"#MyMenuManagerID");
Menu contextMenu = mgr.createContextMenu(myEditorControl);
getSite().registerContextMenu(mgr, myEditorControl);
My new context menu item is specified in my editor's plugin.xml as follows:
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="popup:#MyMenuManagerID">
<command> ... </command>
</menuContribution>
</extension>
My new context menu item does not appear in my context menu, but when I use
locationURI="popup:org.eclipse.ui.popup.any?after=additions" it does
appear.
Presumably, I am not specifying the URI for my own context menu correctly.
What is the correct mapping between the MenuManager ID and the locationURI?
Thanks
Peter Saunders