Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [menus] submenu in popup menu does not show up when manually populated
[menus] submenu in popup menu does not show up when manually populated [message #335245] Fri, 27 March 2009 11:39 Go to next message
Eclipse UserFriend
Submenu in popup menus does not show up when (manually) populated through
the IMenuService and the popup menu is not registered through a view's
site, i.e. IViewSite.registerContextMenu().

Is this a bug or is this not supported?

Code:
//this does not populate submenu in popup menus
ContributionManager contributionManager = ...
menuService.populateContributionManager( contributionManager,
"popup:my.unique.popupMenu" )

//this works when registering popup menu in a view site
getSite().registerContextMenu( "my.unique.popupMenu", ... )
Re: [menus] submenu in popup menu does not show up when manually populated [message #335246 is a reply to message #335245] Fri, 27 March 2009 11:44 Go to previous messageGo to next message
Eclipse UserFriend
In addition:
Only submenus do not work in popup menu. Commands (actions) are shown
properly.
Re: [menus] submenu in popup menu does not show up when manually populated [message #335306 is a reply to message #335245] Tue, 31 March 2009 12:07 Go to previous message
Eclipse UserFriend
Erdal Karaca wrote:
> Submenu in popup menus does not show up when (manually) populated
> through the IMenuService and the popup menu is not registered through a
> view's site, i.e. IViewSite.registerContextMenu().
>
> Is this a bug or is this not supported?
>
> Code:
> //this does not populate submenu in popup menus
> ContributionManager contributionManager = ...
> menuService.populateContributionManager( contributionManager,
> "popup:my.unique.popupMenu" )

This should work fine ... which submenu is not showing up? Or do you
mean you are populating that ID but no popup.any contributions show up?
Does your MenuManager have removeAllWhenShown set to true?

Please give an example of the XML that is not showing up for you.

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.eclips e.platform.doc.isv/guide/workbench.htm
Previous Topic:Command API and Global actions
Next Topic:Why is C'tor of UIElement protected?
Goto Forum:
  


Current Time: Mon Apr 28 01:45:10 EDT 2025

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

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

Back to the top