Bug 294096 Changing a MPart's name does not alter the CTabItem's text
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/StackRenderer.java
}
		
		CTabFolder ctf = (CTabFolder) parentElement.getWidget();
		boolean isEditorStack = part instanceof MEditor;
		if (ctf.getItemCount() == 0 && !isEditorStack) {
			final Shell sh = ctf.getShell();
			parentElement.setVisible(false);
			sh.getDisplay().asyncExec(new Runnable() {
				public void run() {
					sh.layout(true, true);
				}
			});
		}
		
		if (isEditorStack) {
			parentElement.getChildren().remove(child);
		}
	}
	@Override
	public void hookControllerLogic(final MUIElement me) {
		super.hookControllerLogic(me);
		final MPartStack stack = (MPartStack) me;
		
		CTabFolder ctf = (CTabFolder) me.getWidget();
		ctf.addSelectionListener(new SelectionListener() {
			public void widgetDefaultSelected(SelectionEvent e) {
			}
			public void widgetSelected(SelectionEvent e) {
				MPart newPart = (MPart) e.item.getData(OWNING_ME);
				if (stack.getActiveChild() != newPart) {