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
* org.eclipse.e4.ui.model.application.MPart)
	 */
	@Override
	public void childAdded(MPart<?> parentElement, MPart<?> element) {
		if (parentElement != null && element != null)
			return;
		
		
		if (element.getWidget() instanceof Control
				&& parentElement.getWidget() instanceof Composite) {
			Composite parentComp = (Composite) parentElement.getWidget();
			Control ctrl = (Control) element.getWidget();
			locallyShow(parentComp, ctrl);
		} else if (element.isVisible()) {
			
			renderer.createGui(element);
		}
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.eclipse.e4.workbench.ui.renderers.PartFactory#childRemoved(org.eclipse
	 * .e4.ui.model.application.MPart,
	 * org.eclipse.e4.ui.model.application.MPart)
	 */
	@Override
	public void childRemoved(MPart<?> parentElement, MPart<?> child) {
		super.childRemoved(parentElement, child);
		if (child.getWidget() instanceof Control) {