Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to implement the coolbar in the composite
How to implement the coolbar in the composite [message #241852] Wed, 19 March 2008 10:32
Eclipse UserFriend
Originally posted by: yifanzhou.gmx.de

Hi,

i created a coolbar on which i want to place some jface's actions, but i can't get anything in this composite. The code is following:

CoolBar coolBar = new CoolBar( composite, SWT.FLAT );
gd = new GridData( GridData.FILL_HORIZONTAL );
gd.heightHint = 50;
coolBar.setLayoutData( gd );

CoolBarManager coolBar = new CoolBarManager( coolBarMgr );
ToolBarManager toolBar = new ToolBarManager( coolBar.getStyle() );
coolBar.add( toolBar );
toolBar.add( new TestAction("Test") );
toolBar.add( new Separator() );

is there any problem in these codes?

many thx
yifan
Previous Topic:How to add a toolbar into the GEF editor
Next Topic:Create image from a resource
Goto Forum:
  


Current Time: Fri Apr 26 03:44:28 GMT 2024

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

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

Back to the top