Hi,
I can add composite to coolbar on eclipse 3.7 this like
@Override
protected void fillCoolBar(ICoolBarManager coolBar) {
// TODO Auto-generated method stub
super.fillCoolBar(coolBar);
ToolBarManager toolBarManager = new ToolBarManager();
coolBar.add(toolBarManager);
toolBarManager.add(action);
toolBarManager.add(action_1);
toolBarManager.add(action_2);
toolBarManager.add(new Separator());
ToolBarManager toolBarManager_1 = new ToolBarManager();
coolBar.add(toolBarManager_1);
toolBarManager_1.add(exitAction);
IContributionItem comboItem = new ControlContribution("type321")
{
public void fill(CoolBar parent, int index) {
CoolItem coolItem = new CoolItem(parent, SWT.NONE);
InfoComp panel = new InfoComp(parent, SWT.NONE, thisComp);
coolItem.setControl(panel);
coolItem.setPreferredSize(
panel.computeSize(SWT.DEFAULT, SWT.DEFAULT));
}
@Override
protected Control createControl(Composite parent) {
return null;
}
};
// coolBar.setLockLayout(false);
try{
comboItem.setVisible(true);
coolBar.add(comboItem);
coolBar.update(true);
}
catch(Exception ex){
ex.printStackTrace();
}
}
this code not working in eclipse 4.3 . Not added InfoComp composite on collbar.
How can I find a solution this issue for eclipse 4.3
Best Regards,