Hi, I've got a problem with toolbar. My OS is Linux with eclipse 3.6.
In eclipse IDE when you reduce toolbar area (change window size) you can see addition menu (>>) which contains element's of toolbar. When I try to change toolbar size in my app I don't see any items in toolbar.
Steps to recreate:
1. Create hello world example and add toolbar. For example add it manual:
ApplicationActionBarAdvisor
@Override
protected void fillCoolBar(ICoolBarManager coolBar) {
final ToolBarManager toolbar = new ToolBarManager(SWT.FLAT | SWT.LEFT);
coolBar.add(new ToolBarContributionItem(toolbar, "main"));
toolbar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
}
ApplicationWorkbenchWindowAdvisor
public void preWindowOpen() {
...
configurer.setShowCoolBar(true);
...
}
2. In plugin.xml add extension point menu and add commands to toolbar
<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="toolbar:main?after=additions">
<command
commandId="org.eclipse.ui.perspectives.showPerspective"
style="push">
</command>
<command
commandId="org.eclipse.ui.perspectives.showPerspective"
style="push">
</command>
<command
commandId="org.eclipse.ui.perspectives.showPerspective"
style="push">
</command>
</menuContribution>
</extension>
3. Now if you launch app and reduce size of main window then you can see addition menu (>>) of toolbar wich is empty.