Bug 303896 [ui] 6 failures/18 errors in I20100224-2100
Failures in tests like: testGet_ActivePartId, testGet_ActivePartId, etc Errors in tests like: testGet_Selection2, testGet_ActiveChild2, etc PW
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/workbench/PartRenderingEngineTests.java
MPartStack stack = (MPartStack) container.getChildren().get(0);
		MPart part = stack.getChildren().get(0);
		IPresentationEngine renderer = (IPresentationEngine) appContext
				.get(IPresentationEngine.class.getName());
		renderer.removeGui(part);
		renderer.removeGui(window);
		while (Display.getCurrent().readAndDispatch()) {
			
		}
	}
	public void testAddWindowBug299219() throws Exception {
		MApplication application = MApplicationFactory.eINSTANCE
				.createApplication();
		application.setContext(appContext);
		MWindow window = MApplicationFactory.eINSTANCE.createWindow();
		application.getChildren().add(window);
		appContext.set(MApplication.class.getName(), application);
		wb = new E4Workbench(application, appContext);
		wb.createAndRunUI(window);
		assertNotNull(window.getWidget());
		MWindow window2 = MApplicationFactory.eINSTANCE.createWindow();
		application.getChildren().add(window2);
		assertNotNull(window2.getWidget());
	}
	public void testPartStack_SetActiveChildBug299379() throws Exception {
		MApplication application = MApplicationFactory.eINSTANCE
				.createApplication();
		application.setContext(appContext);
		appContext.set(MApplication.class.getName(), application);
		MWindow window = MApplicationFactory.eINSTANCE.createWindow();