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 13:25 Go to next message
Lidder is currently offline Lidder
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 19:39 Go to previous message
Paul Webster is currently offline Paul Webster
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: Thu Aug 28 23:28:33 EDT 2014

Powered by FUDForum. Page generated in 0.15548 seconds