Bug 277513 [Compatibility] Remove WorkbenchFactory
The factory is currently used to call the e4 Workbench constructor, but it adds another layer of indirection that we don't need at this point in time. PW
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/Workbench.java
return el;
				}
			}
		}
		return null;
	}
	private void init(MApplication<? extends MWindow> workbench2) {
		
		globalContext.set(MApplication.class.getName(), workbench);
		
		System.err.println("workbench init commands"); 
		ECommandService cs = (ECommandService) globalContext
				.get(ECommandService.class.getName());
		Category cat = cs.getCategory(MApplication.class.getName());
		cat.define("Application Category", null); 
		EList<MCommand> commands = workbench.getCommand();
		for (MCommand cmd : commands) {
			String id = cmd.getId();
			String name = cmd.getName();
			Command command = cs.getCommand(id);
			command.define(name, null, cat);
		}
	}
	public int run() {
		MWindow wbw = workbench.getWindows().get(0);
		createGUI(wbw);
		rv = 0;