Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Adding an existing menu to a context menu
Adding an existing menu to a context menu [message #655114] Fri, 18 February 2011 11:47
No real name is currently offline No real name
Messages: 1
Registered: February 2011
Junior Member
Is it possible to add an existing menu to a context menu?
In our application I added a menu (let's call it test.menu) to
the extras menu.

   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="menu:extras?before=preferences">
         <menu
              id="test.menu"
               label="%menu.label">
         </menu>
      </menuContribution>
[...]


In diverse plugins, entries are added to this menu (test.menu).

Now I would like to add this menu to a context menu.

      <menuContribution locationURI="popup:context.menu?after=additions">
         <menu
               id="test.menu"
               label="Test Menu">
         </menu>
      </menuContribution>


Does anybody know what this does not work? The menu does not appear as an item in the context menu?
Previous Topic:MultiPageEditorPart
Next Topic:Eclipse RCP: Using property tester with menu
Goto Forum:
  


Current Time: Thu Sep 18 17:49:42 GMT 2014

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

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