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.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/WBPartFactory.java
public Object createWidget(MPart<?> part) {
		final Widget newWidget;
		if (part instanceof MWindow<?>) {
			IEclipseContext parentContext = getContextForParent(part);
			Shell wbwShell = new Shell(Display.getCurrent(), SWT.SHELL_TRIM);
			newWidget = wbwShell;
			bindWidget(part, newWidget);
			
			final IHandlerService hs = new PartHandlerService(part);
			IEclipseContext localContext = EclipseContextFactory.create(
					parentContext, UIContextScheduler.instance);
			localContext
					.set(IContextConstants.DEBUG_STRING, "MWorkbenchWindow"); 
			part.setContext(localContext);
			localContext.set(IHandlerService.class.getName(), hs);
			parentContext.set(IServiceConstants.ACTIVE_CHILD, localContext);
			localContext.set(MWindow.class.getName(), part);
			
			localContext.set(Shell.class.getName(), wbwShell);
			if (part instanceof MWorkbenchWindow) {
				TrimmedLayout tl = new TrimmedLayout(wbwShell);
				wbwShell.setLayout(tl);