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/MinMaxAddon.java
ctf.setMinimizeVisible(true);
				ctf.setMinimized(false);
				ctf.setMaximizeVisible(true);
				ctf.setMaximized(false);
			}
			
			
			if (element instanceof MArea && ctf == element.getWidget()) {
				List<MPartStack> stacks = modelService.findElements(element, null,
						MPartStack.class, null);
				for (MPartStack stack : stacks) {
					adjustCTFButtons(stack);
				}
			}
		}
	}
	private CTabFolder getCTFFor(MUIElement element) {
		if (element instanceof MArea) {
			if (element.getWidget() instanceof CTabFolder)
				return (CTabFolder) element.getWidget();
			MUIElement theKid = ((MArea) element).getChildren().get(0);
			if (theKid.getWidget() instanceof CTabFolder)
				return (CTabFolder) theKid.getWidget();
		} else if (element.getWidget() instanceof CTabFolder)
			return (CTabFolder) element.getWidget();
		else if (element instanceof MPlaceholder) {
			MPlaceholder ph = (MPlaceholder) element;
			if (ph.getRef() instanceof MArea) {
				return getCTFFor(ph.getRef());
			}