Bug 262962 Quick fix to get selection service working in the photo demo
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/Workbench.java
wbw.getTrim().setBottomTrim(cp);
			cp = ApplicationFactory.eINSTANCE.createPart();
			wbw.getTrim().setLeftTrim(cp);
			cp = ApplicationFactory.eINSTANCE.createPart();
			wbw.getTrim().setRightTrim(cp);
			Perspective<?> persp = WorkbenchFactory.eINSTANCE.createPerspective();
			persp.setId(initialPerspectiveId);
			persp.setName("Java Perspective");
			legacyHook.loadPerspective(persp);
			wbw.getChildren().add(persp);
			wbw.setActiveChild(persp);
		} else {
			Resource resource = new ResourceSetImpl().getResource(
					initialWorkbenchDefinitionInstance, true);
			Application<Window<Part<?>>> app = (Application<Window<Part<?>>>) resource.getContents().get(0);
			
			
			
			
			wbw = WorkbenchFactory.eINSTANCE.createWorkbenchWindow();
			wbw.setWidth(app.getWindows().get(0).getWidth());
			wbw.setHeight(app.getWindows().get(0).getHeight());
			wbw.setX(app.getWindows().get(0).getX());
			wbw.setY(app.getWindows().get(0).getY());
			wbw.setMenu(app.getWindows().get(0).getMenu());
			wbw.setToolBar(app.getWindows().get(0).getToolBar());
			wbw.setTrim(ApplicationFactory.eINSTANCE.createTrim());
			wbw.getHandlers().addAll(app.getWindows().get(0).getHandlers());
			Perspective<Part<?>> perspective = WorkbenchFactory.eINSTANCE.createPerspective();
			wbw.getChildren().add(perspective);