Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » ToolBarManager in stand-alone JFace
ToolBarManager in stand-alone JFace [message #259363] Wed, 07 July 2004 19:11
Mark Freiheit is currently offline Mark FreiheitFriend
Messages: 30
Registered: July 2009
Member
Please forgive the newbie question...

I do not really understand where it is appropriate to use the XXXManager
classes under the ApplicationWindow. I was able to create a MenuManager
pretty easily, and I like the ActionContributionItem hooks, so I was
hoping to extend it to a ToolBarManager.

However, the ToolBar needs to be placed as a child to some Composite deep
down in my application... not directly under the ApplicationWindow. The
obvious thought is code like the following...

ToolBarManager myTBManager = new ToolBarManager();
ToolBar tb = myTBManager.createControl(parentComposite);

GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
tb.setLayoutData(gd);

myTBManager.add(...a bunch of Actions to make my toolbar work);

but it does not work.

Do the XXXManager classes have to be managed through the
ApplicationWindow? Is there no such thing as a "stand-alone"
ToolBarManager (that is, a ToolBarManager that manages a ToolBar which is
a child of a composite)?
Previous Topic:Programmatically accessing synchronization/delta information
Next Topic:SWT 3.0: CTabFolder old appearance
Goto Forum:
  


Current Time: Sat Jul 27 16:47:46 GMT 2024

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

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

Back to the top