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
else
			loc.y = (caRect.y + caRect.height) - paneSize.y;
		someShell.setLocation(loc);
	}
	private void updateSelection(boolean showing) {
		if (trimStackTB == null || trimStackTB.isDisposed())
			return;
		if (minimizedElement instanceof MPlaceholder) {
			trimStackTB.getItem(1).setSelection(showing);
			return;
		}
		
		MPartStack theStack = (MPartStack) minimizedElement;
		MStackElement selectedElement = showing ? theStack.getSelectedElement() : null;
		ToolItem[] items = trimStackTB.getItems();
		for (ToolItem item : items) {
			item.setSelection(item.getData() == selectedElement);
		}
	}
	private Composite getHostPane() {
		if (hostPane != null)
			return hostPane;
		
		hostPane = new Composite(trimStackTB.getShell(), SWT.NONE);
		hostPane.setData(ShellActivationListener.DIALOG_IGNORE_KEY, Boolean.TRUE);
		int xSize = 600;
		String xSizeStr = toolControl.getPersistedState().get("XSize");
		if (xSizeStr != null)
			xSize = Integer.parseInt(xSizeStr);
		int ySize = 400;