Bug 304074 View toolbars don't go away when the view is closed
1. Run the compatibility layer. 2. Close the 'Package Explorer' view. 3. Its toolbar is still there.
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/StackRenderer.java
if (items[i].getData(OWNING_ME) == child) {
				items[i].setControl(null);
				items[i].dispose();
			}
		}
		
		if (parentElement.getSelectedElement() == child) {
			
			
			MUIElement defaultSel = getFirstVisibleElement(parentElement);
			parentElement.setSelectedElement(defaultSel);
		}
	}
	private MUIElement getFirstVisibleElement(
			MElementContainer<MUIElement> stack) {
		
		for (MUIElement mPart : stack.getChildren()) {
			if (mPart.isToBeRendered())
				return mPart;
		}
		return null;
	}
	@Override
	public void hookControllerLogic(final MUIElement me) {
		super.hookControllerLogic(me);
		if (!(me instanceof MElementContainer<?>))
			return;
		final MElementContainer<MUIElement> stack = (MElementContainer<MUIElement>) me;
		
		CTabFolder ctf = (CTabFolder) me.getWidget();