Bug 303549 [UI] Dragging the last element from a stack causes placeholders to appear
The check to 'pick' a new element to select isn't checking whether the 'toBeRendered' is true.
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/StackRenderer.java
}
		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();
		}
		
		if (parentElement.getSelectedElement() == child) {
			
			
			if (parentElement.getChildren().size() == 0) {
				parentElement.setSelectedElement(null);
			} else {
				parentElement.setSelectedElement(parentElement.getChildren()
						.get(0));
			}
		}