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
MWorkbenchWindow wbw = WorkbenchFactory.eINSTANCE
					.createMWorkbenchWindow();
			app.getWindows().add(wbw);
			wbw.setWidth(1280);
			wbw.setHeight(1024);
			wbw.setX(100);
			wbw.setY(100);
			wbw.setName("E4 Workbench MWindow [Java, Debug]"); 
			wbw.setTrim(ApplicationFactory.eINSTANCE.createMTrim());
			MPart<MPart<?>> cp = ApplicationFactory.eINSTANCE.createMPart();
			wbw.getTrim().setTopTrim(cp);
			cp = ApplicationFactory.eINSTANCE.createMPart();
			wbw.getTrim().setBottomTrim(cp);
			cp = ApplicationFactory.eINSTANCE.createMPart();
			wbw.getTrim().setLeftTrim(cp);
			cp = ApplicationFactory.eINSTANCE.createMPart();
			wbw.getTrim().setRightTrim(cp);
			
			
			
			
			String initialPerspectiveId = "org.eclipse.e4.ui.workbench.fragment.testPerspective"; 
			MPerspective<?> persp = WorkbenchFactory.eINSTANCE
					.createMPerspective();
			persp.setId(initialPerspectiveId);
			persp.setName("Java MPerspective"); 
			legacyHook.loadPerspective(persp);
			wbw.getChildren().add(persp);
			wbw.setActiveChild(persp);
			return app;