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
@Execute
	public void showStack(@Named("show") boolean show) {
		CTabFolder ctf = (CTabFolder) theStack.getWidget();
		if (show && !isShowing) {
			hostPane = getHostPane();
			ctf.setParent(hostPane);
			hostPane.getDisplay().addFilter(SWT.MouseDown, mouseDownListener);
			getShellClientComposite().addControlListener(caResizeListener);
			updateSelection(theStack.getSelectedElement());
			
			setPaneLocation(hostPane);
			hostPane.layout(true);
			hostPane.moveAbove(null);
			hostPane.setVisible(true);
			isShowing = true;
		} else if (!show && isShowing) {
			Display.getCurrent().removeFilter(SWT.MouseDown, mouseDownListener);
			
			
			Composite clientArea = getShellClientComposite();
			if (clientArea != null)
				clientArea.removeControlListener(caResizeListener);
			if (hostPane != null && hostPane.isVisible()) {
				hostPane.setVisible(false);
				
				updateSelection(null);
				
				Point size = hostPane.getSize();
				toolControl.getPersistedState().put("XSize", Integer.toString(size.x));
				toolControl.getPersistedState().put("YSize", Integer.toString(size.y));