Bug 298415 StackRenderer assumes the shell has not been disposed when forcing a re-layout
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/StackRenderer.java
private CTabItem findItemForPart(MElementContainer<MUIElement> stack,
			MUIElement part) {
		CTabFolder ctf = (CTabFolder) stack.getWidget();
		if (ctf == null)
			return null;
		CTabItem[] items = ctf.getItems();
		for (int i = 0; i < items.length; i++) {
			if (items[i].getData(OWNING_ME) == part)
				return items[i];
		}
		return null;
	}
	private void hookTabControllerLogic(
			final MElementContainer<MUIElement> stack, final MUIElement part,
			final CTabItem cti) {
	}
	@Override
	public void hideChild(MElementContainer<MUIElement> parentElement,
			MUIElement child) {
		super.hideChild(parentElement, child);
		if (!(((MUIElement) parentElement) instanceof MPartStack)
				|| !(child instanceof MPart))
			return;
		CTabItem oldItem = findItemForPart(parentElement, child);
		if (oldItem != null) {
			oldItem.setControl(null); 
			oldItem.dispose();
		}
		
		CTabFolder ctf = (CTabFolder) parentElement.getWidget();