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
.openConnection();
				appLastModified = openConnection.getLastModified();
			} catch (Exception e) {
				
			}
		}
		
		boolean restore = restoreLastModified > appLastModified;
		if (restore) {
			System.err.println("Restoring workbench: " + restoreLocation); 
			workbench = (MApplication<MWindow>) resourceSetImpl.getResource(
					restoreLocation, true).getContents().get(0);
		} else {
			System.err
					.println("Initializing workbench: " + applicationDefinitionInstance); 
			Resource resource = new XMIResourceImpl();
			workbench = readWBModel(applicationDefinitionInstance);
			resource.getContents().add((EObject) workbench);
			resource.setURI(URI.createFileURI(workbenchData.getAbsolutePath()));
		}
		init(workbench);
		return workbench;
	}
	private MApplication<? extends MWindow> readWBModel(
			URI initialWorkbenchDefinitionInstance) {
		ILegacyHook legacyHook = (ILegacyHook) globalContext
				.get(ILegacyHook.class.getName());
		if (legacyHook != null) {
			MApplication<MWorkbenchWindow> app = ApplicationFactory.eINSTANCE
					.createMApplication();