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
setState(elementToChange, MAXIMIZED);
				} else {
					setState(elementToChange, null);
				}
			}
		}
	};
	private EventHandler widgetListener = new EventHandler() {
		public void handleEvent(Event event) {
			final MUIElement changedElement = (MUIElement) event.getProperty(EventTags.ELEMENT);
			if (!(changedElement instanceof MPartStack) && !(changedElement instanceof MArea))
				return;
			final CTabFolder ctf = getCTFFor(changedElement);
			if (ctf == null)
				return;
			adjustCTFButtons(changedElement);
			if (changedElement instanceof MPlaceholder)
				return;
			ctf.removeCTabFolder2Listener(CTFButtonListener); 
			ctf.addCTabFolder2Listener(CTFButtonListener);
			ctf.removeMouseListener(CTFDblClickListener); 
			ctf.addMouseListener(CTFDblClickListener);
		}
	};
	private void setState(MUIElement element, String state) {
		if (element instanceof MArea)
			element = element.getCurSharedRef();
		MUIElement parentElement = element.getParent();
		if (parentElement instanceof MArea)
			element = parentElement.getCurSharedRef();