Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:39 Go to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
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 15:44 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 854
Registered: July 2009
Senior Member
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 16:07 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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: Thu Nov 14 08:04:54 GMT 2024

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

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

Back to the top