Bug 304211 StackRenderer does not set eagerly created controls to the item
Right-clicking on a Java element and then using 'Open Declaration' opens an editor on the specified file but its content is not shown. Switching tabs or selecting items in the 'Outline' view does _not_ help. Seems to be calling IWorkbenchPage's APIs properly. No idea yet as to what's going on over here.
tests/org.eclipse.e4.ui.tests/src/org/eclipse/e4/ui/tests/workbench/PartRenderingEngineTests.java
}
	@Override
	protected void tearDown() throws Exception {
		if (wb != null) {
			wb.close();
		}
		if (appContext instanceof IDisposable) {
			((IDisposable) appContext).dispose();
		}
	}
	public void testCreateViewBug298415() {
		final MWindow window = createWindowWithOneView("Part Name");
		MApplication application = MApplicationFactory.eINSTANCE
				.createApplication();
		application.getChildren().add(window);
		application.setContext(appContext);
		appContext.set(MApplication.class.getName(), application);
		wb = new E4Workbench(application, appContext);
		wb.createAndRunUI(window);
		MPartSashContainer container = (MPartSashContainer) window
				.getChildren().get(0);
		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()) {
			
		}