Bug 269058 [UI] Remove product specific code
The current implementation of org.eclipse.e4.workbench.ui.internal.Workbench currently contains code (based on the availability of the LegacyHook) that is specific to running either the compatibility layer (LH == true) or the photo demo (PH == false). We should make the base Workbench logic work whichever of the two 'applications' are running (i.e. based -only- on the difference in their 'default' model XMI).
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/Workbench.java
}
			if (factory != null) {
				factory.init(r, context, f);
				r.addPartFactory(factory);
			}
		}
	}
	private void createGUI(MWindow wbw) {
		if (renderer == null) {
			renderer = new PartRenderer(contributionFactory, globalContext);
			initializeRenderer(registry, renderer, globalContext,
					contributionFactory);
		}
		renderer.createGui(wbw);
		appWindow = wbw.getWidget();
	}
	public void close() {
		windowHandler.dispose(appWindow);
	}
	
	
	
	public void closeWindow(MWorkbenchWindow workbenchWindow) {
		windowHandler.close(workbenchWindow.getWidget());
	}
	public Object getWindow() {
		return appWindow;
	}
}