Bug 317073 Make Logging stuff available on a per class configuration
bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java
import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext;
import org.eclipse.jface.window.IShellProvider;
import org.eclipse.osgi.service.datalocation.Location;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
/**
 *
 */
public class E4Application implements IApplication {
	private String[] args;
	private IModelResourceHandler handler;
	private Display display = null;
	public static final String THEME_ID = "cssTheme";
	public Display getApplicationDisplay() {
		if (display == null) {
			display = Display.getDefault();
		}
		return display;
	}
	public Object start(IApplicationContext applicationContext)
			throws Exception {
		Display display = getApplicationDisplay();
		E4Workbench workbench = createE4Workbench(applicationContext);
		IEclipseContext workbenchContext = workbench.getContext();
		workbenchContext.set(Display.class, display);
		
		workbench.createAndRunUI(workbench.getApplication());
		
		saveModel();