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
});
	}
	/**
	 * Create the context chain. It both creates the chain for the current
	 * model, and adds eAdapters so it can add new contexts when new model items
	 * are added.
	 * 
	 * @param parentContext
	 *            The parent context
	 * @param part
	 *            needs a context created
	 */
	public static void initializeContext(IEclipseContext parentContext,
			MPart<?> part) {
		final IEclipseContext context;
		if (part.getContext() != null) {
			context = part.getContext();
		} else {
			context = EclipseContextFactory.create(parentContext,
					UISchedulerStrategy.getInstance());
		}
		
		
		final Class[] interfaces = part.getClass().getInterfaces();
		for (Class intf : interfaces) {
			System.err.println("add intf: " + intf.getName()); 
			context.set(intf.getName(), part);
		}
		part.setContext(context);