Bug 296356 We shouldn't create more than one e4 OSGi context per BundleContext
bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/workbench/swt/internal/WorkbenchApplication.java
import org.eclipse.e4.core.services.context.EclipseContextFactory;
import org.eclipse.e4.core.services.context.IEclipseContext;
import org.eclipse.e4.core.services.context.spi.ContextInjectionFactory;
import org.eclipse.e4.core.services.context.spi.IContextConstants;
import org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher;
import org.eclipse.e4.ui.workbench.swt.Activator;
import org.eclipse.e4.workbench.ui.IResourceUtiltities;
import org.eclipse.e4.workbench.ui.internal.Workbench;
import org.eclipse.emf.common.util.URI;
import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext;
import org.eclipse.jface.databinding.swt.SWTObservables;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Listener;
/**
 *
 */
public class WorkbenchApplication implements IApplication {
	private static final String APPLICATION_CSS_RESOURCES_ARG = "-applicationCSSResources";
	private static final String APPLICATION_CSS_RESOURCES = "applicationCSSResources";
	private static final String APPLICATION_CSS_ARG = "-applicationCSS";
	private static final String APPLICATION_CSS = "applicationCSS";
	private static final String APPLICATION_XMI_ARG = "-applicationXMI";
	private static final String APPLICATION_XMI = "applicationXMI";
	
	public static Workbench workbench;
	public Object start(IApplicationContext applicationContext)
			throws Exception {
		final Display display = new Display();