Bug 340465 Remove CTabFolder/CTabItem references from the TrimStack
bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/minmax/TrimStack.java
}
	private void updateSelection(boolean showing) {
		if (trimStackTB == null || trimStackTB.isDisposed())
			return;
		if (minimizedElement instanceof MPlaceholder) {
			trimStackTB.getItem(1).setSelection(showing);
			return;
		}
		
		MPartStack theStack = (MPartStack) minimizedElement;
		MStackElement selectedElement = showing ? theStack.getSelectedElement() : null;
		ToolItem[] items = trimStackTB.getItems();
		for (ToolItem item : items) {
			CTabItem cti = (CTabItem) item.getData();
			if (cti == null || cti.isDisposed())
				continue;
			item.setSelection(cti.getData(AbstractPartRenderer.OWNING_ME) == selectedElement);
		}
	}
	private Composite getHostPane() {
		if (hostPane != null)
			return hostPane;
		
		hostPane = new Composite(trimStackTB.getShell(), SWT.NONE);
		hostPane.setData(ShellActivationListener.DIALOG_IGNORE_KEY, Boolean.TRUE);
		int xSize = 600;
		String xSizeStr = toolControl.getPersistedState().get("XSize");
		if (xSizeStr != null)
			xSize = Integer.parseInt(xSizeStr);
		int ySize = 400;