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
private static String trimURI = "platform:/plugin/org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.TrimStack"; 
	static String ID_SUFFIX = "(minimized)"; 
	
	public static String MINIMIZED = "Minimized"; 
	public static String MAXIMIZED = "Maximized"; 
	public static String MINIMIZED_BY_ZOOM = "MinimizedByZoom"; 
	@Inject
	IEventBroker eventBroker;
	@Inject
	EModelService modelService;
	@Inject
	private IEclipseContext context;
	private CTabFolder2Adapter CTFButtonListener = new CTabFolder2Adapter() {
		private MUIElement getElementToChange(CTabFolderEvent 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 maximize(CTabFolderEvent event) {
			setState(getElementToChange(event), MAXIMIZED);
		}
		public void minimize(CTabFolderEvent event) {
			setState(getElementToChange(event), MINIMIZED);