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