Bug 320814 Minimized stacks are 'restored' on shutdown
bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/minmax/TrimStack.java
else
			loc.y = (caRect.y + caRect.height) - paneSize.y;
		someShell.setLocation(loc);
	}
	private void updateSelection(MStackElement selectedElement) {
		
		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);
		hostPane.addDisposeListener(new DisposeListener() {
			public void widgetDisposed(DisposeEvent e) {
				restoreStack();
			}
		});
		int xSize = 600;
		String xSizeStr = toolControl.getPersistedState().get("XSize");
		if (xSizeStr != null)
			xSize = Integer.parseInt(xSizeStr);
		int ySize = 400;