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
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.ToolItem;
import org.eclipse.ui.internal.IWorkbenchGraphicConstants;
import org.eclipse.ui.internal.WorkbenchImages;
import org.eclipse.ui.internal.WorkbenchMessages;
import org.osgi.service.event.EventHandler;
/**
 *
 */
public class TrimStack {
	private static Image restoreImage;
	private ToolBar trimStackTB;
	/**
	 * The context menu for this trim stack's items.
	 */
	private Menu trimStackMenu;
	/**
	 * The underlying tab item that has been selected.
	 */
	private CTabItem selectedTabItem;
	private boolean isShowing = false;
	private MUIElement minimizedElement;
	private Composite hostPane;
	ControlListener caResizeListener = new ControlListener() {
		public void controlResized(ControlEvent e) {
			if (hostPane != null && hostPane.isVisible())