Bug 282016 [UI] Remove Menu/TB creation from the PartRenderer
The code currently 'automatically' creates any defined menu or toolbar in the model as direct children of the newly rendered part. This is incorrect in that a part's menu/toolbar is 'hosted' by its parent part (i.e. a view's toolbar is managed by its containing CTabFolder). It also ends up with a toolbar 'floating' on top of the view in the compatibility layer. We should remove this code and leave the management of the menu and toolbar to the various part factories themselves.
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/renderers/PartRenderer.java
/**
	 * Manages the relationship between a MPart<?> and its rendered Widget.
	 * 
	 * MPart<?>.getWidget().getData(OWNING_ME) == MPart<?>
	 * 
	 * @param element
	 *            The UI element
	 * @param widget
	 *            The widget
	 */
	
	
	
			
	
	 }
	private void hookControllerLogic(final MPart<?> element) {
		
		PartFactory factory = (PartFactory) getFactoryFor(element);
		if (factory != null)
			factory.hookControllerLogic(element);
	}
	protected void setFactoryFor(MPart element, PartFactory factory) {
		element.setOwner(factory);
	}
	protected PartFactory getFactoryFor(MPart element) {
		return (PartFactory) element.getOwner();
	}
}