Bug 284180 e4 doesn't start when workspace path contains a space
Attempting to run e4 with a workspace location containing a space fails to start. ava.net.URISyntaxException: Illegal character in path at index 18: file:/C:/Documents and Settings/jarthorn/test/ at java.net.URI$Parser.fail(Unknown Source) at java.net.URI$Parser.checkChars(Unknown Source) at java.net.URI$Parser.parseHierarchical(Unknown Source) at java.net.URI$Parser.parse(Unknown Source) at java.net.URI.<init>(Unknown Source) at java.net.URL.toURI(Unknown Source) at org.eclipse.e4.workbench.ui.internal.Workbench.<init>(Workbench.java:103)
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/Workbench.java
windowHandler.dispose(window.getWidget());
		}
	}
	
	
	
	public void closeWindow(MWorkbenchWindow workbenchWindow) {
		windowHandler.close(workbenchWindow.getWidget());
	}
	public Object getWindow() {
		return workbench.getWindows().get(0).getWidget();
	}
	/*
	 * For use when there is no real styling engine present. Has no behaviour but conforms to
	 * IStylingEngine API.
	 * 
	 * @param appContext
	 */
	private static void initializeNullStyling(IEclipseContext appContext) {
		appContext.set(IStylingEngine.SERVICE_NAME, new IStylingEngine() {
			public void setClassname(Object widget, String classname) {
			}
			public void setId(Object widget, String id) {
			}
			public void style(Object widget) {
			}
		});
	}
}