Bug 277513 [Compatibility] Remove WorkbenchFactory
The factory is currently used to call the e4 Workbench constructor, but it adds another layer of indirection that we don't need at this point in time. PW
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/workbench/RunApplicationTest.java
protected void launchApplication(final String uri) {
		Runnable app = new Runnable() {
			public void run() {
				display = new Display();
				final WorkbenchFactory workbenchFactory = new WorkbenchFactory(
						getInstanceLocation(), getBundleAdmin(),
						RegistryFactory.getRegistry());
				final URI initialWorkbenchDefinitionInstance = URI
						.createPlatformPluginURI(uri, true);
				Realm.runWithDefault(SWTObservables.getRealm(display),
						new Runnable() {
							public void run() {
								try {
									
									
									
									IEclipseContext serviceContext = EclipseContextFactory
											.createServiceContext(bundleContext);
									applicationContext = EclipseContextFactory
											.create(serviceContext, null);
									applicationContext.set(
											IContextConstants.DEBUG_STRING,
											"application"); 
									applicationContext
											.set(IResourceUtiltities.class
													.getName(),
													new ResourceUtility(
															getBundleAdmin()));
									WorkbenchStylingSupport
											.initializeNullStyling(applicationContext);