Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [JFace] ToolBarManager
[JFace] ToolBarManager [message #276978] Thu, 02 December 2004 09:56 Go to next message
Eclipse UserFriend
Originally posted by: huntdo.bc.edu

Hi,
I'm a little confused on how the ToolBarManager works. I am extending
the ApplicationWindow and calling: addToolBar(SWT.FLAT), which in turn calls
my createToolBar() method. I am trying to add a text box to the ToolBar that
it returns, but I keep getting a Null Argument error.
In order to add a text box to the toolbar I need to do something like this:
Text text = new Text(toolbar, SWT.NONE)
How do I get the toolbar from within the createToolBar() method?
I've tried:
Text text = new Text(tool_bar_manager.getControl(), SWT.NONE), but that
doesn't work either (where 'tool_bar_manager' is an instance of
ToolBarManager that was created in the createToolBar() method.

Any suggestions?
Thanks very much,
Doyle
Re: [JFace] ToolBarManager [message #277208 is a reply to message #276978] Mon, 06 December 2004 15:06 Go to previous message
Eclipse UserFriend
Originally posted by: douglas.pollock.magma.ca

Doyle Hunt wrote:
> calls my createToolBar() method. I am trying to add a text box to the
> ToolBar that it returns, but I keep getting a Null Argument error.

Null argument error? Do you mean a NullPointerException? If so, what does
the stack trace look like?



cheers,
d.
Previous Topic:Testing Eclipse with Java 5.0 runtime
Next Topic:Associate an editor with files with NO extension?
Goto Forum:
  


Current Time: Wed Nov 05 17:00:22 EST 2025

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

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

Back to the top