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
String ySizeStr = toolControl.getPersistedState().get("YSize");
		if (ySizeStr != null)
			ySize = Integer.parseInt(ySizeStr);
		hostPane.setSize(xSize, ySize);
		hostPane.addListener(SWT.Traverse, escapeListener);
		
		fixedSides = getFixedSides();
		hostPane.setLayout(new TrimPaneLayout(fixedSides));
		return hostPane;
	}
	private int getFixedSides() {
		int verticalValue = SWT.TOP; 
		if (bar.getSide() == SideValue.LEFT)
			return SWT.LEFT | verticalValue;
		else if (bar.getSide() == SideValue.RIGHT)
			return SWT.RIGHT | verticalValue;
		return SWT.TOP | SWT.LEFT;
	}
	private Image getRestoreImage(Display display) {
		if (restoreImage == null) {
			restoreImage = WorkbenchImages
					.getImage(IWorkbenchGraphicConstants.IMG_ETOOL_RESTORE_TRIMPART);
		}
		return restoreImage;
	}
	private boolean isFixed(int swtSide) {
		return (fixedSides & swtSide) != 0;
	}
}