Search in sources :

Example 61 with IInterpreterManager

use of org.python.pydev.core.IInterpreterManager in project ibex_gui by ISISComputingGroup.

the class PyDevConfiguration method configure.

/**
 * Configure PyDev.
 */
public static void configure() {
    IInterpreterManager iMan = InterpreterManagersAPI.getPythonInterpreterManager(true);
    NullProgressMonitor monitor = new NullProgressMonitor();
    IInterpreterInfo interpreterInfo = iMan.createInterpreterInfo(PreferenceSupplier.getPythonPath(), monitor, false);
    iMan.setInfos(new IInterpreterInfo[] { interpreterInfo }, Collections.<String>emptySet(), monitor);
}
Also used : NullProgressMonitor(org.eclipse.core.runtime.NullProgressMonitor) IInterpreterInfo(org.python.pydev.core.IInterpreterInfo) IInterpreterManager(org.python.pydev.core.IInterpreterManager)

Aggregations

IInterpreterManager (org.python.pydev.core.IInterpreterManager)61 IInterpreterInfo (org.python.pydev.core.IInterpreterInfo)30 MisconfigurationException (org.python.pydev.core.MisconfigurationException)14 InterpreterInfo (org.python.pydev.ast.interpreter_managers.InterpreterInfo)13 CoreException (org.eclipse.core.runtime.CoreException)12 File (java.io.File)11 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)11 IPythonNature (org.python.pydev.core.IPythonNature)11 ArrayList (java.util.ArrayList)10 HashMap (java.util.HashMap)8 IProject (org.eclipse.core.resources.IProject)7 SystemPythonNature (org.python.pydev.plugin.nature.SystemPythonNature)7 Map (java.util.Map)6 Tuple (org.python.pydev.shared_core.structure.Tuple)6 AdditionalSystemInterpreterInfo (com.python.pydev.analysis.additionalinfo.AdditionalSystemInterpreterInfo)5 Collection (java.util.Collection)5 HashSet (java.util.HashSet)5 IProgressMonitor (org.eclipse.core.runtime.IProgressMonitor)5 PyEdit (org.python.pydev.editor.PyEdit)4 DataAndImageTreeNode (org.python.pydev.shared_core.structure.DataAndImageTreeNode)4