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
private static Image restoreImage;
	private ToolBar trimStackTB;
	private boolean isShowing = false;
	private MPartStack theStack;
	private Composite hostPane;
	ControlListener caResizeListener = new ControlListener() {
		public void controlResized(ControlEvent e) {
			if (hostPane != null && hostPane.isVisible())
				setPaneLocation(hostPane);
		}
		public void controlMoved(ControlEvent e) {
		}
	};
	private Listener mouseDownListener = new Listener() {
		public void handleEvent(Event event) {
			if (event.widget instanceof Control) {
				Control control = (Control) event.widget;
				if (control.getShell() != hostPane.getParent())
					return;
				if (control == trimStackTB)
					return;
				
				while (!(control instanceof Shell)) {
					if (control == hostPane) {
						return;
					}
					control = control.getParent();
				}
				showStack(false);
			}