Bug 326175 WBWRenderer arbitrarily modifies the window's parent's active context chain
The window's parent's context arbitrarily changes its active child to the window being rendered in createWidget(*).
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/workbench/PartRenderingEngineTests.java
public void testBug336139() {
		MApplication application = ApplicationFactoryImpl.eINSTANCE
				.createApplication();
		MTrimmedWindow window = BasicFactoryImpl.eINSTANCE
				.createTrimmedWindow();
		application.getChildren().add(window);
		application.setSelectedElement(window);
		MTrimBar trimBar = BasicFactoryImpl.eINSTANCE.createTrimBar();
		window.getTrimBars().add(trimBar);
		MToolControl toolControl = MenuFactoryImpl.eINSTANCE
				.createToolControl();
		trimBar.getChildren().add(toolControl);
		application.setContext(appContext);
		appContext.set(MApplication.class.getName(), application);
		wb = new E4Workbench(application, appContext);
		wb.createAndRunUI(window);
	}
	public void testBut336225() {
		MApplication application = ApplicationFactoryImpl.eINSTANCE
				.createApplication();
		MTrimmedWindow window = BasicFactoryImpl.eINSTANCE
				.createTrimmedWindow();
		application.getChildren().add(window);
		application.setSelectedElement(window);
		MTrimBar trimBar = BasicFactoryImpl.eINSTANCE.createTrimBar();
		window.getTrimBars().add(trimBar);
		MToolControl toolControl = MenuFactoryImpl.eINSTANCE
				.createToolControl();
		toolControl.setContributionURI(SampleToolControl.CONTRIBUTION_URI);
		trimBar.getChildren().add(toolControl);