diff --git a/base/uk.ac.stfc.isis.ibex.e4.client/Application.e4xmi b/base/uk.ac.stfc.isis.ibex.e4.client/Application.e4xmi
index 05fe2a27a2..78920a2f71 100644
--- a/base/uk.ac.stfc.isis.ibex.e4.client/Application.e4xmi
+++ b/base/uk.ac.stfc.isis.ibex.e4.client/Application.e4xmi
@@ -8,6 +8,7 @@
+
diff --git a/base/uk.ac.stfc.isis.ibex.e4.ui.perspectiveswitcher/src/uk/ac/stfc/isis/ibex/e4/ui/perspectiveswitcher/commands/ResetPerspective.java b/base/uk.ac.stfc.isis.ibex.e4.ui.perspectiveswitcher/src/uk/ac/stfc/isis/ibex/e4/ui/perspectiveswitcher/commands/ResetPerspective.java
index 3f10c4e676..7200690b86 100644
--- a/base/uk.ac.stfc.isis.ibex.e4.ui.perspectiveswitcher/src/uk/ac/stfc/isis/ibex/e4/ui/perspectiveswitcher/commands/ResetPerspective.java
+++ b/base/uk.ac.stfc.isis.ibex.e4.ui.perspectiveswitcher/src/uk/ac/stfc/isis/ibex/e4/ui/perspectiveswitcher/commands/ResetPerspective.java
@@ -2,6 +2,9 @@
import javax.inject.Inject;
+import org.eclipse.core.commands.AbstractHandler;
+import org.eclipse.core.commands.ExecutionEvent;
+import org.eclipse.core.commands.ExecutionException;
import org.eclipse.e4.core.di.annotations.Execute;
import org.eclipse.e4.ui.model.application.MApplication;
import org.eclipse.e4.ui.workbench.modeling.EModelService;
@@ -13,7 +16,7 @@
/**
* Class containing the eclipse command to reset perspectives.
*/
-public class ResetPerspective {
+public class ResetPerspective extends AbstractHandler{
/**
* The application (injected by eclipse framework).
@@ -33,13 +36,23 @@ public class ResetPerspective {
@Inject
public EModelService modelService;
+ @Override
+ public Object execute(ExecutionEvent event) throws ExecutionException {
+ PerspectivesProvider provider = new PerspectivesProvider(app, partService, modelService);
+ PerspectiveResetAdapter resetAdapter = new PerspectiveResetAdapter(provider);
+ resetAdapter.resetPerspective();
+ return null;
+ }
+
/**
* Eclipse command to rest perspectives.
*/
- @Execute
- public void execute() {
- PerspectivesProvider provider = new PerspectivesProvider(app, partService, modelService);
- PerspectiveResetAdapter resetAdapter = new PerspectiveResetAdapter(provider);
- resetAdapter.resetPerspective();
- }
+// @Execute
+// public Object execute(ExecutionEvent event) {
+// PerspectivesProvider provider = new PerspectivesProvider(app, partService, modelService);
+// PerspectiveResetAdapter resetAdapter = new PerspectiveResetAdapter(provider);
+// resetAdapter.resetPerspective();
+// return null;
+// }
+
}
diff --git a/base/uk.ac.stfc.isis.ibex.targetplatform/uk.ac.stfc.isis.ibex.targetplatform.target b/base/uk.ac.stfc.isis.ibex.targetplatform/uk.ac.stfc.isis.ibex.targetplatform.target
index 04803ef801..848388154f 100644
--- a/base/uk.ac.stfc.isis.ibex.targetplatform/uk.ac.stfc.isis.ibex.targetplatform.target
+++ b/base/uk.ac.stfc.isis.ibex.targetplatform/uk.ac.stfc.isis.ibex.targetplatform.target
@@ -127,9 +127,9 @@
-
-
-
+
+
+
diff --git a/base/uk.ac.stfc.isis.ibex.ui.scripting/src/uk/ac/stfc/isis/ibex/ui/scripting/GeniePythonConsoleFactory.java b/base/uk.ac.stfc.isis.ibex.ui.scripting/src/uk/ac/stfc/isis/ibex/ui/scripting/GeniePythonConsoleFactory.java
index 5eaa6ea69f..55562258d6 100644
--- a/base/uk.ac.stfc.isis.ibex.ui.scripting/src/uk/ac/stfc/isis/ibex/ui/scripting/GeniePythonConsoleFactory.java
+++ b/base/uk.ac.stfc.isis.ibex.ui.scripting/src/uk/ac/stfc/isis/ibex/ui/scripting/GeniePythonConsoleFactory.java
@@ -36,6 +36,8 @@
import org.python.pydev.debug.newconsole.env.PydevIProcessFactory;
import org.python.pydev.debug.newconsole.env.PydevIProcessFactory.PydevConsoleLaunchInfo;
import org.python.pydev.plugin.PydevPlugin;
+import org.python.pydev.ast.interpreter_managers.InterpreterManagersAPI;
+
import uk.ac.stfc.isis.ibex.logger.IsisLog;
import uk.ac.stfc.isis.ibex.preferences.PreferenceSupplier;
@@ -112,7 +114,7 @@ private void setInitialInterpreterCommands() {
* can throw several different exceptions
*/
PydevConsoleInterpreter createGeniePydevInterpreter() throws Exception {
- IInterpreterManager manager = PydevPlugin.getPythonInterpreterManager(true);
+ IInterpreterManager manager = InterpreterManagersAPI.getPythonInterpreterManager(true);
IInterpreterInfo interpreterInfo = manager.createInterpreterInfo(new PreferenceSupplier().pythonInterpreterPath(),
monitor, false);
diff --git a/base/uk.ac.stfc.isis.ibex.ui.scripting/src/uk/ac/stfc/isis/ibex/ui/scripting/PyDevConfiguration.java b/base/uk.ac.stfc.isis.ibex.ui.scripting/src/uk/ac/stfc/isis/ibex/ui/scripting/PyDevConfiguration.java
index 586a1f7438..d482654638 100644
--- a/base/uk.ac.stfc.isis.ibex.ui.scripting/src/uk/ac/stfc/isis/ibex/ui/scripting/PyDevConfiguration.java
+++ b/base/uk.ac.stfc.isis.ibex.ui.scripting/src/uk/ac/stfc/isis/ibex/ui/scripting/PyDevConfiguration.java
@@ -23,7 +23,7 @@
import org.eclipse.core.runtime.NullProgressMonitor;
import org.python.pydev.core.IInterpreterInfo;
import org.python.pydev.core.IInterpreterManager;
-import org.python.pydev.plugin.PydevPlugin;
+import org.python.pydev.ast.interpreter_managers.InterpreterManagersAPI;
import uk.ac.stfc.isis.ibex.preferences.PreferenceSupplier;
@@ -40,7 +40,7 @@ private PyDevConfiguration() {
* Configure PyDev.
*/
public static void configure() {
- IInterpreterManager iMan = PydevPlugin.getPythonInterpreterManager(true);
+ IInterpreterManager iMan = InterpreterManagersAPI.getPythonInterpreterManager(true);
NullProgressMonitor monitor = new NullProgressMonitor();
IInterpreterInfo interpreterInfo = iMan.createInterpreterInfo(new PreferenceSupplier().pythonInterpreterPath(),
monitor, false);
diff --git a/base/uk.ac.stfc.isis.ibex.ui.scripting/src/uk/ac/stfc/isis/ibex/ui/scripting/PythonInterpreterProviderFactory.java b/base/uk.ac.stfc.isis.ibex.ui.scripting/src/uk/ac/stfc/isis/ibex/ui/scripting/PythonInterpreterProviderFactory.java
index b6696f84a6..818c67c19b 100644
--- a/base/uk.ac.stfc.isis.ibex.ui.scripting/src/uk/ac/stfc/isis/ibex/ui/scripting/PythonInterpreterProviderFactory.java
+++ b/base/uk.ac.stfc.isis.ibex.ui.scripting/src/uk/ac/stfc/isis/ibex/ui/scripting/PythonInterpreterProviderFactory.java
@@ -21,7 +21,7 @@
import org.python.pydev.ui.pythonpathconf.AbstractInterpreterProviderFactory;
import org.python.pydev.ui.pythonpathconf.AlreadyInstalledInterpreterProvider;
-import org.python.pydev.ui.pythonpathconf.IInterpreterProvider;
+import org.python.pydev.ast.interpreter_managers.IInterpreterProvider;
import uk.ac.stfc.isis.ibex.preferences.PreferenceSupplier;