Bug 270989 Context refactoring
Based on discussions over the past weeks, I'm doing a refactoring of the context API. Major changes: - Renamed IComputedValue to IContextFunction - Renamed *Value to *Function - Renamed UIContextScheduler to UISchedulerStrategy - Added concept of ILookupStrategy to delegate lookup of keys that are not yet defined in a given context - Re-implemented OSGi service support using lookup strategy I also fixed a couple of NPE's I found while testing with the e4 photo demo (null realms, etc)
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/Workbench.java
}
			if (factory != null) {
				factory.init(r, context, f);
				r.addPartFactory(factory);
			}
		}
	}
	private void createGUI(MWindow wbw) {
		if (renderer == null) {
			renderer = new PartRenderer(contributionFactory, globalContext);
			initializeRenderer(registry, renderer, globalContext,
					contributionFactory);
		}
		renderer.createGui(wbw);
		appWindow = wbw.getWidget();
	}
	public void close() {
		windowHandler.dispose(appWindow);
	}
	
	
	
	public void closeWindow(MWorkbenchWindow workbenchWindow) {
		windowHandler.close(workbenchWindow.getWidget());
	}
	public Object getWindow() {
		return appWindow;
	}
}