How to implement the coolbar in the composite [message #241852] |
Wed, 19 March 2008 06:32 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04992 seconds