Bug 335733 org.eclipse.e4.ui.workbench.addons.swt has dependency on org.eclipse.ui
This means when one wants to use it one has to get in the compat layer: * minmax: Can be fixed quite easily because it only uses some ID stuff from IPageLayout and one WorkbenchImages-call => Proposal fix them and leave it in e4.ui.workbench.addons.swt * perspectiveswitcher: Looks like this is harder to fix because it usies all sorts of Workbench-Classes => Proposal move it to compat layer
bundles/org.eclipse.e4.ui.workbench.addons.swt/src/org/eclipse/e4/ui/workbench/addons/minmax/TrimStack.java
newItem.setData(stackElement);
				newItem.setImage(getImage(part));
				newItem.setToolTipText(getLabel(part));
				newItem.addSelectionListener(new SelectionListener() {
					public void widgetSelected(SelectionEvent e) {
						ToolItem item = (ToolItem) e.widget;
						MUIElement me = (MUIElement) item.getData();
						if (me instanceof MPlaceholder)
							me = ((MPlaceholder) me).getRef();
						boolean show = item.getSelection();
						partService.activate((MPart) me);
						showStack(show);
					}
					public void widgetDefaultSelected(SelectionEvent e) {
						widgetSelected(e);
					}
				});
			}
		}
		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() {