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
import org.osgi.framework.BundleContext;
import org.osgi.framework.Filter;
import org.osgi.framework.InvalidSyntaxException;
import org.osgi.service.packageadmin.PackageAdmin;
import org.osgi.util.tracker.ServiceTracker;
/**
 * This should be run as a headless Junit Plug-in Test. It creates the
 * application in a separate thread, and then tries to post the test to the
 * application using syncExec(*). It doesn't have the correct "wait for the
 * workbench to come up" code.
 */
public class RunApplicationTest extends TestCase {
	private ServiceTracker instanceLocation;
	private BundleContext bundleContext;
	private ServiceTracker instanceAppContext;
	private ServiceTracker bundleTracker;
	private IWorkbench workbench;
	private IEclipseContext applicationContext;
	private Display display;
	public RunApplicationTest(String name) {
		super(name);
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see junit.framework.TestCase#setUp()
	 */
	@Override
	protected void setUp() throws Exception {
		bundleContext = Activator.getDefault().getBundle().getBundleContext();