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
showStack(show);
					}
					public void widgetDefaultSelected(SelectionEvent e) {
						ToolItem item = (ToolItem) e.widget;
						CTabItem cti = (CTabItem) item.getData();
						MUIElement me = (MUIElement) cti.getData(AbstractPartRenderer.OWNING_ME);
						if (me instanceof MPlaceholder)
							me = ((MPlaceholder) me).getRef();
						boolean show = item.getSelection();
						partService.activate((MPart) me);
						showStack(show);
					}
				});
			}
		}
		if (hostPane != null && hostPane.isVisible())
			updateSelection(true);
		trimStackTB.pack();
		trimStackTB.getShell().layout(new Control[] { trimStackTB }, SWT.DEFER);
		trimStackTB.addDisposeListener(new DisposeListener() {
			public void widgetDisposed(DisposeEvent e) {
				trimStackTB = null;
			}
		});
	}
	void restoreStack() {
		showStack(false);
		
		Display.getCurrent().removeFilter(SWT.MouseDown, mouseDownListener);
		minimizedElement.setVisible(true);