Bug 304448 E4Workbench never locks the instance area
The E4Workbench never appears to lock the instance area for the workspace. This means multiple instances could be launched which use the same instance area. org.eclipse.e4.workbench.ui.internal.ResourceHandler.ResourceHandler(Location, URI, boolean, Logger) constructor gets the instance area URL but it never attempts to lock the instance area. Is this intentional or an oversight?
bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java
ContextInjectionFactory.make(EclipseAdapter.class, appContext));
		
		if (appContext.get(ILoggerProvider.class) == null) {
			appContext.set(ILoggerProvider.class, ContextInjectionFactory.make(
					DefaultLoggerProvider.class, appContext));
		}
		
		appContext.set(ContextManager.class.getName(), new ContextManager());
		
		appContext.set(IServiceConstants.ACTIVE_CONTEXTS,
				new ActiveContextsFunction());
		appContext.set(IServiceConstants.ACTIVE_PART,
				new ActivePartLookupFunction());
		appContext.runAndTrack(new RunAndTrack() {
			public boolean changed(IEclipseContext context) {
				Object o = appContext.get(IServiceConstants.ACTIVE_PART);
				if (o instanceof MPart) {
					appContext.set(IServiceConstants.ACTIVE_PART_ID,
							((MPart) o).getElementId());
				}
				return true;
			}
			/*
			 * For debugging purposes only
			 */
			@Override
			public String toString() {
				return IServiceConstants.ACTIVE_PART_ID;
			}
		});