Bug 263090 [legacy] Load the model with commands and handlers
The legacy fragment should be able to load the commands model with commands and the handlers model with handlers. PW
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/renderers/PartRenderer.java
MPart added = (MPart) msg.getNewValue();
					parentFactory.childAdded(parent, added);
				}
			}
		});
		
		((EObject) element).eAdapters().add(new AdapterImpl() {
			@Override
			public void notifyChanged(Notification msg) {
				if (ApplicationPackage.Literals.MPART__CHILDREN.equals(msg
						.getFeature())
						&& msg.getEventType() == Notification.REMOVE) {
					MPart<?> parent = (MPart<?>) msg.getNotifier();
					PartFactory parentFactory = getFactoryFor(parent);
					if (parentFactory == null)
						return;
					MPart<?> removed = (MPart<?>) msg.getOldValue();
					parentFactory.childRemoved(parent, removed);
				}
			}
		});
	}
	protected void setFactoryFor(MPart element, PartFactory factory) {
		element.setOwner(factory);
	}
	protected PartFactory getFactoryFor(MPart element) {
		return (PartFactory) element.getOwner();
	}
}