Bug 278375 [ui] NPE on photo demo shutdown
NPE because the restore location is not set. PW
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/Workbench.java
windowHandler.setBounds(appWindow, wbw.getX(), wbw.getY(), wbw
					.getWidth(), wbw.getHeight());
			windowHandler.layout(appWindow);
			windowHandler.open(appWindow);
			processHandlers(wbw);
		}
	}
	public void close() {
		final EList<? extends MWindow> windows = workbench.getWindows();
		for (MWindow window : windows) {
			windowHandler.dispose(window.getWidget());
		}
	}
	
	
	
	public void closeWindow(MWorkbenchWindow workbenchWindow) {
		windowHandler.close(workbenchWindow.getWidget());
	}
	public Object getWindow() {
		return workbench.getWindows().get(0).getWidget();
	}
}