Bug 280846 [UI][CSS] Null styling engine required in main context for tests to run
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/workbench/RunApplicationTest.java
filter = bundleContext.createFilter(Location.INSTANCE_FILTER);
			} catch (InvalidSyntaxException e) {
				
				
			}
			instanceLocation = new ServiceTracker(bundleContext, filter, null);
			instanceLocation.open();
		}
		return (Location) instanceLocation.getService();
	}
	protected IApplicationContext getApplicationContext() {
		if (instanceAppContext == null) {
			instanceAppContext = new ServiceTracker(bundleContext,
					IApplicationContext.class.getName(), null);
			instanceAppContext.open();
		}
		return (IApplicationContext) instanceAppContext.getService();
	}
	protected PackageAdmin getBundleAdmin() {
		if (bundleTracker == null) {
			if (bundleContext == null)
				return null;
			bundleTracker = new ServiceTracker(bundleContext,
					PackageAdmin.class.getName(), null);
			bundleTracker.open();
		}
		return (PackageAdmin) bundleTracker.getService();
	}
	protected void launchApplication(final String uri) {
		Runnable app = new Runnable() {