Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » toolbar inside a toolbar
toolbar inside a toolbar [message #537258] Tue, 01 June 2010 17:25 Go to next message
Lidder is currently offline LidderFriend
Messages: 46
Registered: July 2009
Member
Hello,

I am extending the eclipse outline view. I am trying to insert a toolbar inside the contentouline toolbar. I get a null pointer exception in the WorkbenchMenuService in the following method:
public void releaseContributions(ContributionManager mgr)

The problem is that the nested toolbar does not have toolbarManager. I created this toolbar in the plugin.xml file of my plugin. How do I give the nested toolbarcontributionItem a toolbarManager?

Thanks.
Re: toolbar inside a toolbar [message #537321 is a reply to message #537258] Tue, 01 June 2010 23:39 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

I'm not sure what you are trying to do but a menuContribution containing
a toolbar containing some commands works against a CoolBarManager. If
you have a ToolBarManager like in a view's actionBars or of your own
making, then you can consume a menuContribution contains commands directly.

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/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:[Common Navigator] Image Decorators with Custom Resource Backed Models
Next Topic:Cross-platform update site
Goto Forum:
  


Current Time: Wed Nov 26 00:51:27 GMT 2014

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

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