Bug 265164 Consolidate all interface access under the appropriate context
At the moment the various 'Legacy<xxx>' implementations maintain discreet fields to store a variety of interface implementations (IWorkbench, IWorkbenchWindow, IPartSite...). With the new Context menchanism in place these should be placed in to the context structure at the appropriate location in the context tree and all the access methods (getService, getAdapter and a variety of 'direct' access API's like 'IWorkbecnh#getWorkingSetManager') should use the context to gain access to the API interface.
bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/internal/Workbench.java
public static final String ID = "org.eclipse.e4.workbench.fakedWBWindow"; 
	private MApplication<MWorkbenchWindow> workbench;
	private ResourceUtility resourceUtility;
	private static final boolean saveAndRestore = true;
	private File workbenchData;
	private Shell appWindow;
	private final IExtensionRegistry registry;
	private final PackageAdmin packageAdmin;
	private ResourceSetImpl resourceSet;
	public IEclipseContext getContext() {
		return globalContext;
	}
	private ILegacyHook legacyHook;
	
	private PartRenderer renderer;
	private int rv;
	private Map<String, Object> languages;
	private ExceptionHandler exceptionHandler;
	private IEclipseContext globalContext;
	public Workbench(Location instanceLocation, IExtensionRegistry registry,
			PackageAdmin packageAdmin, URI workbenchXmiURI, IEclipseContext applicationContext) {
		exceptionHandler = new ExceptionHandler();
		this.registry = registry;
		this.packageAdmin = packageAdmin;
		workbenchData = new File(new File(instanceLocation.getURL()
				.toExternalForm()),
				".metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi"); 
		resourceSet = new ResourceSetImpl();