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
perspective.getChildren().addAll(app.getWindows().get(0).getChildren());
			processPartContributions(resource, wbw);
		}
		wb.getWindows().add(wbw);
	}
	private void processLanguages() {
		languages = new HashMap<String,Object>();
		IExtensionRegistry registry = InternalPlatform.getDefault()
				.getRegistry();
		String extId = "org.eclipse.e4.languages";
		IConfigurationElement[] languageElements = registry
				.getConfigurationElementsFor(extId);
		for (int i = 0; i < languageElements.length; i++) {
			IConfigurationElement languageElement = languageElements[i];
			try {
				languages
						.put(
								languageElement.getAttribute("name"),
								languageElement
										.createExecutableExtension("contributionFactory"));
			} catch (InvalidRegistryObjectException e) {
				
				e.printStackTrace();
			} catch (CoreException e) {
				
				e.printStackTrace();
			}
		}
	}
	private void processPartContributions(Resource resource, WorkbenchWindow wbw) {