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
this.context = context;
	}
	public void addPartFactory(PartFactory factory) {
		partFactories.add(factory);
	}
	public Object createGui(MPart element) {
		
		installLifeCycleHooks(element);
		if (!element.isVisible())
			return null;
		
		Object newWidget = createWidget(element);
		
		if (newWidget != null) {
			
			element.setWidget(newWidget);
			
			
			PartFactory factory = getFactoryFor(element);
			factory.bindWidget(element, newWidget);
			hookControllerLogic(element);
			factory.processContents(element);
			factory.postProcess(element);
			
			if (element.getParent() instanceof MPart) {
				MPart parentElement = (MPart) element.getParent();
				PartFactory parentFactory = getFactoryFor(parentElement);
				parentFactory.childAdded(parentElement, element);
			}
		}