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
}
	private EObject findObject(TreeIterator<EObject> it, String id) {
		while (it.hasNext()) {
			EObject el = it.next();
			if (el instanceof MApplicationElement) {
				if (el.eResource().getURIFragment(el).equals(id)) {
					return el;
				}
			}
		}
		return null;
	}
	private void init() {
		Activator.trace(Policy.DEBUG_WORKBENCH, "init() workbench", null); 
		
		workbenchContext.set(MApplication.class.getName(), workbench);
		workbench.setContext(workbenchContext);
		
		Activator.trace(Policy.DEBUG_CMDS, "Initialize service from model", null); 
		ECommandService cs = (ECommandService) workbenchContext
				.get(ECommandService.class.getName());
		Category cat = cs.getCategory(MApplication.class.getName());
		cat.define("Application Category", null); 
		EList<MCommand> commands = workbench.getCommand();
		for (MCommand cmd : commands) {
			String id = cmd.getId();
			String name = cmd.getName();
			Command command = cs.getCommand(id);
			command.define(name, null, cat);
		}