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
System.err.println("Saving workbench: "
						+ ((EObject) workbench).eResource().getURI());
				
				
				
				
				
				((EObject) workbench).eResource().save(null);
			} catch (IOException e) {
				
				e.printStackTrace();
			}
		}
		return rv;
	}
	private void createGUI(WorkbenchWindow workbenchWindow) {
		if (renderer == null) {
			renderer = new PartRenderer((IContributionFactory) this,
					globalContext);
			
			
			
			IConfigurationElement[] factories = registry
					.getConfigurationElementsFor("org.eclipse.e4.workbench.partfactory");
			
			
			int offset = 0;
			for (int i = 0; i < factories.length; i++) {
				String clsSpec = factories[i].getAttribute("class");
				if (clsSpec.indexOf("Legacy") >= 0