Bug 303322 Enable view toolbars and menus
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/MenuRenderer.java
return null;
		if (parent instanceof Decorations) {
			return new Menu((Decorations) parent, SWT.BAR);
		} else if (parent instanceof MenuItem) {
			return new Menu((MenuItem) parent);
		} else if (parent instanceof Control) {
			return new Menu((Control) parent);
		}
		return null;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.eclipse.e4.ui.workbench.swt.internal.AbstractPartRenderer#hideChild
	 * (org.eclipse.e4.ui.model.application.MElementContainer,
	 * org.eclipse.e4.ui.model.application.MUIElement)
	 */
	@Override
	public void hideChild(MElementContainer<MUIElement> parentElement,
			MUIElement child) {
		super.hideChild(parentElement, child);
		
		
		Widget widget = (Widget) child.getWidget();
		if (widget != null && !widget.isDisposed())
			widget.dispose();
	}
}