[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Actions and command handlers

Dirk Wenke wrote:
Thanks Paul,

that did the trick! But there is now one problem left.
Using the org.eclipse.ui.menus extension point I succeded to contribute elements to the popupmenu which are directly linked to my commands.
But I have problems contributing to submenus of the contextmenu.


   <extension
         point="org.eclipse.ui.menus">
      <menuContribution
            locationURI="popup:my.view?after=startGroup">
         <menu
               id="refactor.submenu"
               label="Refactor">
         </menu>
      </menuContribution>
   </extension>

If I define popup elements directly as command subelements of the menu definition, they are shown in the submenu.
But I do not succeed to contribute from other plugins into that submenu.
Maybe I am using the wrong locationURI?
I tried


locationURI="popup:my.view?after=refactor.submenu"

So this should be locationURI="popup:refactor.submenu?after=additions"

PW


-- Paul Webster http://wiki.eclipse.org/Platform_Command_Framework http://wiki.eclipse.org/Command_Core_Expressions http://wiki.eclipse.org/Menu_Contributions http://wiki.eclipse.org/Menus_Extension_Mapping http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm