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 08:49 Go to next message
Rob is currently offline RobFriend
Messages: 27
Registered: July 2009
Junior Member

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 16:36 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
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,


Paul Webster e.platform.doc.isv/guide/workbench.htm

Previous Topic:Over riding copy paste
Next Topic:Strange behaviour of an open shell (needs a mouse click twice before noticing any event on the shell
Goto Forum:

Current Time: Thu Apr 26 21:11:24 GMT 2018

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

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