Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Toolbar contributions
Toolbar contributions [message #336129] Mon, 25 May 2009 04:49 Go to next message
Rob is currently offline Rob
Messages: 27
Registered: July 2009
Junior Member
Hi,

In my ApplicationActionBarAdvisor, I have created
CommandContributionItems, and added them as menus. This works fine.
However, when I try to add any of these (even workbench ones like save or
print) to the toolbar, they appear in the toolbar ok, but get removed from
the menu bar!

Any ideas on this? Do I need two contributionitem instances for the same
command? (one for menu bar - one for tool bar)?

Any help appreciated, thanks!
Re: Toolbar contributions [message #336146 is a reply to message #336129] Tue, 26 May 2009 12:36 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6857
Registered: July 2009
Location: Ottawa
Senior Member

Yes, commands and actions can be re-used over and over, but one
IContributionItem (ActionContributionItem, CommandContributionItem, etc)
must belong to one and only one ContributionManager (MenuManager,
ToolBarManager).

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:ERROR: ‘Not implmented in this version’ for xml transfom.-Please help
Next Topic:Unresolved Inclusion
Goto Forum:
  


Current Time: Wed Jul 23 12:14:11 EDT 2014

Powered by FUDForum. Page generated in 0.01875 seconds