Bug 283649 View menus cannot be rendered, throws IAE
Click on any view's view menu, an IAE will be thrown. I'm quite positive this used to work. java.lang.IllegalArgumentException: The widget must be MenuItem, Decorations, or Control but is: ToolItem {} at org.eclipse.e4.workbench.ui.renderers.swt.SWTPartRenderer.createMenu(SWTPartRenderer.java:73) at org.eclipse.e4.workbench.ui.renderers.swt.StackRenderer.showMenu(StackRenderer.java:478) at org.eclipse.e4.workbench.ui.renderers.swt.StackRenderer$8.widgetSelected(StackRenderer.java:463) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/SWTPartRenderer.java
IEclipseContext context) {
		Composite layoutHolder = new Composite(parentWidget, SWT.NONE);
		addLayoutForStyling(layoutHolder);
		layoutHolder.setData("org.eclipse.e4.ui.css.swt.marginWrapper", true); 
		final IStylingEngine engine = (IStylingEngine) context
				.get(IStylingEngine.SERVICE_NAME);
		engine.setClassname(layoutHolder, "marginWrapper"); 
		return layoutHolder;
	}
	/*
	 * HACK: Add layout information to the composite for the purpose of styling
	 * margins. See bug #280632
	 */
	protected void addLayoutForStyling(Composite composite) {
		GridLayout gl = new GridLayout(1, true);
		composite.setLayout(gl);
		gl.horizontalSpacing = 0;
		gl.verticalSpacing = 0;
		gl.marginHeight = 0;
		gl.marginWidth = 0;
	}
	/*
	 * HACK: Prep the control with layout information for the purpose of styling
	 * margins. See bug #280632
	 */
	protected void configureForStyling(Control control) {
		control.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
	}
}