diff --git a/chemclipse/plugins/org.eclipse.chemclipse.rcp.app.ui/src/org/eclipse/chemclipse/rcp/app/ui/handlers/PerspectiveSwitchHandler.java b/chemclipse/plugins/org.eclipse.chemclipse.rcp.app.ui/src/org/eclipse/chemclipse/rcp/app/ui/handlers/PerspectiveSwitchHandler.java index 3e1dfe94c6..be04ccf7ca 100644 --- a/chemclipse/plugins/org.eclipse.chemclipse.rcp.app.ui/src/org/eclipse/chemclipse/rcp/app/ui/handlers/PerspectiveSwitchHandler.java +++ b/chemclipse/plugins/org.eclipse.chemclipse.rcp.app.ui/src/org/eclipse/chemclipse/rcp/app/ui/handlers/PerspectiveSwitchHandler.java @@ -6,7 +6,7 @@ * which is available at https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 - * + * * Contributors: * Philip Wenig - initial API and implementation *******************************************************************************/ @@ -15,7 +15,6 @@ import java.util.ArrayList; import java.util.List; -import org.eclipse.chemclipse.rcp.app.ui.Activator; import org.eclipse.chemclipse.rcp.app.ui.dialogs.PerspectiveChooserDialog; import org.eclipse.chemclipse.rcp.app.ui.dialogs.PerspectiveSwitcherDialog; import org.eclipse.chemclipse.rcp.app.ui.preferences.PreferenceSupplier; @@ -97,12 +96,6 @@ public static void focusPerspectiveAndView(String perspectiveId, List vi } } - public static boolean isActivePerspective(String perspectiveId) { - - String activePerspective = Activator.getDefault().getActivePerspective(); - return activePerspective.equals(perspectiveId); - } - /* * Show a dialog if requested. The boolean values: P_SHOW_PERSPECTIVE_DIALOG * P_CHANGE_PERSPECTIVE_AUTOMATICALLY can be edited by the user. diff --git a/chemclipse/plugins/org.eclipse.chemclipse.support.ui/src/org/eclipse/chemclipse/support/ui/activator/AbstractActivatorUI.java b/chemclipse/plugins/org.eclipse.chemclipse.support.ui/src/org/eclipse/chemclipse/support/ui/activator/AbstractActivatorUI.java index 2664d35e07..ab71c46e6a 100644 --- a/chemclipse/plugins/org.eclipse.chemclipse.support.ui/src/org/eclipse/chemclipse/support/ui/activator/AbstractActivatorUI.java +++ b/chemclipse/plugins/org.eclipse.chemclipse.support.ui/src/org/eclipse/chemclipse/support/ui/activator/AbstractActivatorUI.java @@ -6,7 +6,7 @@ * which is available at https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 - * + * * Contributors: * Philip Wenig - initial API and implementation *******************************************************************************/ @@ -71,7 +71,7 @@ public IPreferenceStore getPreferenceStore() { * Returns the image given by the key. * Please initialize the image registry before using this function. * Use the method e.g.: - * + * * getImage(ICON_WARN) */ public Image getImage(String key) { @@ -99,11 +99,6 @@ public EPartService getPartService() { return getEclipseContext().get(EPartService.class); } - public PartSupport getPartSupport() { - - return getEclipseContext().get(PartSupport.class); - } - public PerspectiveSupport getPerspectiveSupport() { return getEclipseContext().get(PerspectiveSupport.class); @@ -168,16 +163,6 @@ public IEclipseContext getEclipseContext() { return eclipseContext; } - public boolean saveDirtyParts() { - - return getPartSupport().saveDirtyParts(); - } - - public String getActivePerspective() { - - return getPerspectiveSupport().getActivePerspective(); - } - /** * Initialize the preference store. */ @@ -198,14 +183,14 @@ protected void initializePreferenceStore(IPreferenceSupplier preferenceSupplier) /** * Initialize the image registry. * Please supply a HashMap of used images/icons, e.g.: - * + * *

 	 * public static final String ICON_WARN = "ICON_WARN";
-	 * 
+	 *
 	 * Map<String, String> imageHashMap = new HashMap<>();
 	 * imageHashMap.put(ICON_WARN, "icons/16x16/warn.gif");
 	 * 
- * + * * The icon path is set relative to the calling plugin. */ protected void initializeImageRegistry(Map imageHashMap) {