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/PartHandlerService.java
private MPart<?> part;
	public PartHandlerService(MPart<?> p) {
		part = p;
	}
	public MHandler getHandler(MCommand command) {
		return findFirstHandlerFor(part, command);
	}
	private MHandler findFirstHandlerFor(MPart<?> p, MCommand command) {
		if (p == null) {
			return null;
		}
		Iterator<MHandler> i = p.getHandlers().iterator();
		while (i.hasNext()) {
			MHandler h = i.next();
			if (command.equals(h.getCommand())) {
				return h;
			}
		}
		return findFirstHandlerFor(p.getParent(), command);
	}
}