Community
Participate
Working Groups
Created attachment 254802 [details] modified example mail application After updating from eclipse 4.4.2 to 4.5.0 main toolbar control contributions using the "org.eclipse.ui.menus" extension point are being cut off (see attachment printscreens). Attached the modified example mail application: plugin.xml <extension point="org.eclipse.ui.menus"> <menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions"> <toolbar id="test"> <control class="toolbarexample.TestControl" id="test.control"> </control> </toolbar> </menuContribution> </extension> /toolbar-example/src/toolbarexample/TestControl.java public class TestControl extends WorkbenchWindowControlContribution { /** * */ public TestControl() { } /** * @param id */ public TestControl(String id) { super(id); } @Override protected Control createControl(Composite parent) { Label label = new Label(parent, SWT.BORDER); label.setText("Test Label"); return label; } }
Created attachment 254803 [details] application printscreen in Luna (4.4.2)
Created attachment 254804 [details] application printscreen in Mars (4.5.0)
I figured out this workaround. The class should extend ControlContribution instead of WorkbenchWindowControlContribution. In the ApplicationActionBarAdvisor.fillCoolBar() add toolbar.add(new TestControl("testControl"));
*** This bug has been marked as a duplicate of bug 471313 ***