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
}
		public void restore(CTabFolderEvent event) {
			setState(getElementToChange(event), null);
		}
	};
	private MouseListener CTFDblClickListener = new MouseListener() {
		public void mouseUp(MouseEvent e) {
		}
		public void mouseDown(MouseEvent e) {
		}
		private MUIElement getElementToChange(MouseEvent event) {
			CTabFolder ctf = (CTabFolder) event.widget;
			MUIElement element = (MUIElement) ctf.getData(AbstractPartRenderer.OWNING_ME);
			MUIElement parentElement = element.getParent();
			return parentElement instanceof MArea ? parentElement : element;
		}
		public void mouseDoubleClick(MouseEvent e) {
			CTabFolder ctf = (CTabFolder) e.widget;
			if (!ctf.getMaximizeVisible())
				return;
			MUIElement elementToChange = getElementToChange(e);
			if (elementToChange instanceof MArea) {
				MUIElement areaRef = elementToChange.getCurSharedRef();
				if (!areaRef.getTags().contains(MAXIMIZED)) {
					setState(areaRef, MAXIMIZED);
				} else {
					setState(areaRef, null);
				}
			} else {
				if (!elementToChange.getTags().contains(MAXIMIZED)) {