Bug 316195 Improve "Show view" dialog
bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java
workbench.createAndRunUI(workbench.getApplication());
		
		saveModel();
		workbench.close();
		return 0;
	}
	public void saveModel() {
		try {
			handler.save();
		} catch (IOException e) {
			
			e.printStackTrace();
		}
	}
	public E4Workbench createE4Workbench(IApplicationContext applicationContext) {
		args = (String[]) applicationContext.getArguments().get(
				IApplicationContext.APPLICATION_ARGS);
		IEclipseContext appContext = createDefaultContext();
		appContext.set(IApplicationContext.class, applicationContext);
		
		IContributionFactory factory = (IContributionFactory) appContext
				.get(IContributionFactory.class.getName());
		
		
		String lifeCycleURI = getArgValue(E4Workbench.LIFE_CYCLE_URI_ARG,
				applicationContext);
		Object lcManager = null;
		if (lifeCycleURI != null) {
			lcManager = factory.create(lifeCycleURI, appContext);