We are struggling with the alignment of toolbar managers when the tool bar wraps across multiple lines. When the toolbar fits on one line everything is aligned to the left. However when the toolbar does not fit on one line and wraps across several lines the first toolbar manager on every line is aligned to the left and grabs all excessive space making the following ones on the same line right aligned. See the attached file for an illustration.
We have our own action bar advisor and the code roughly look like this:
@Override
protected void fillCoolBar(ICoolBarManager coolBar) {
IToolBarManager partnerBar = new ToolBarManager();
partnerBar.add(new GroupMarker("group11"));
partnerBar.add(new GroupMarker("group12"));
coolBar.add(new ToolBarContributionItem(partnerBar, "com.acme.toolbar1"));
IToolBarManager partnerBar = new ToolBarManager();
partnerBar.add(new GroupMarker("group21"));
partnerBar.add(new GroupMarker("group22"));
coolBar.add(new ToolBarContributionItem(partnerBar, "com.acme.toolbar2"));
// ...
}
The actions are contributed with action sets.
[Updated on: Tue, 09 June 2015 08:04]
Report message to a moderator