Examples of IInterpreterManager


Examples of org.python.pydev.core.IInterpreterManager

        return "Python path";
    }

    public void initializeFrom(ILaunchConfiguration configuration) {
        try {
            IInterpreterManager manager = PydevPlugin.getJythonInterpreterManager();
            String pythonPath = PythonRunnerConfig.getPythonpathFromConfiguration(configuration,
                                                                                  manager);

            fPythonPathList.removeAll();
            java.util.List<String> paths = SimpleRunner.splitPythonpath(pythonPath);
View Full Code Here

Examples of org.python.pydev.core.IInterpreterManager

                } else {
                    throw new CoreException(new StatusInfo(IStatus.ERROR, "Expected project, found: " + found[0]));
                }
            }
        }
        IInterpreterManager pythonInterpreterManager = getInterpreterManager(project);
        String projName = project.getName();
        ILaunchConfigurationWorkingCopy createdConfiguration = LaunchConfigurationCreator
                .createDefaultLaunchConfiguration(resource, getLaunchConfigurationType(),
                        LaunchConfigurationCreator.getDefaultLocation(resource, false), //it'll be made relative later on
                        pythonInterpreterManager, projName);
View Full Code Here

Examples of org.python.pydev.core.IInterpreterManager

            String projectName = null;
            if (keys.contains(TAG_PROJECT_NAME)) {
                projectName = memento.getString(TAG_PROJECT_NAME);
            }

            IInterpreterManager manager = null;
            if (projectName != null) {
                IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
                if (project != null) {
                    IPythonNature nature = PythonNature.getPythonNature(project);
                    if (nature != null) {
View Full Code Here

Examples of org.python.pydev.core.IInterpreterManager

            AdditionalProjectInterpreterInfo projectInterpreterInfo = (AdditionalProjectInterpreterInfo) info.additionalInfo;
            memento.putString(TAG_PROJECT_NAME, projectInterpreterInfo.getProject().getName());

        } else if (info.additionalInfo instanceof AdditionalSystemInterpreterInfo) {
            AdditionalSystemInterpreterInfo systemInterpreterInfo = (AdditionalSystemInterpreterInfo) info.additionalInfo;
            IInterpreterManager manager = systemInterpreterInfo.getManager();
            memento.putInteger(TAG_MANAGER_INTERPRETER_TYPE, manager.getInterpreterType());
            memento.putString(TAG_MANAGER_INTERPRETER, systemInterpreterInfo.getAdditionalInfoInterpreter());

        }

    }
View Full Code Here

Examples of org.python.pydev.core.IInterpreterManager

        }

        String[] parameters = SimplePythonRunner.preparePythonCallParameters(interpreter.getExecutableOrJar(),
                FileUtils.getFileAbsolutePath(serverFile), new String[] { "" + pWrite, "" + pRead });

        IInterpreterManager manager = PydevPlugin.getPythonInterpreterManager();

        String[] envp = null;
        try {
            envp = SimpleRunner.getEnvironment(null, interpreter, manager);
        } catch (CoreException e) {
View Full Code Here

Examples of org.python.pydev.core.IInterpreterManager

                    //Update the modules manager itself (just pass all the keys as that should be fast)
                    modulesManager.updateKeysAndSave(keysFound);

                    //Now, the additional info can be slower, so, let's work only on the deltas...
                    IInterpreterManager manager = builder.info.getModulesManager().getInterpreterManager();
                    try {
                        AbstractAdditionalDependencyInfo additionalSystemInfo = AdditionalSystemInterpreterInfo
                                .getAdditionalSystemInfo(manager, builder.info.getExecutableOrJar());
                        additionalSystemInfo.updateKeysIfNeededAndSave(keysFound);
                    } catch (Exception e) {
View Full Code Here

Examples of org.python.pydev.core.IInterpreterManager

                //ignore
            }
        }

        if (pythonNature != null) {
            IInterpreterManager manager = pythonNature.getRelatedInterpreterManager();
            getFromManagerAndRelatedNatures(selectedText, manager);
        } else {
            getFromSystemManager(selectedText);
        }
View Full Code Here

Examples of org.python.pydev.core.IInterpreterManager

            if (systemPythonNature == null) {
                getFromWorkspace(selectedText);
                return;
            }

            IInterpreterManager manager = infoForFile.o1.getRelatedInterpreterManager();
            getFromManagerAndRelatedNatures(selectedText, manager);

        } else {
            getFromWorkspace(selectedText);
        }
View Full Code Here

Examples of org.python.pydev.core.IInterpreterManager

     * If none is configured, it will show an error saying so.
     * 
     * @param selectedText the text that should be initially set as the filter
     */
    public static void getFromWorkspace(String selectedText) {
        IInterpreterManager useManager = ChooseInterpreterManager.chooseInterpreterManager();
        if (useManager == null) {
            return;
        }

        getFromManagerAndRelatedNatures(selectedText, useManager);
View Full Code Here

Examples of org.python.pydev.core.IInterpreterManager

     * @return a list the default 'builtin' exceptions to be presented to the user (i.e.:
     * AssertionError, RuntimeError, etc)
     */
    public List<String> getBuiltinExceptions() {
        ArrayList<String> list = new ArrayList<String>();
        IInterpreterManager useManager = ChooseInterpreterManager.chooseInterpreterManager();
        if (useManager != null) {
            IToken[] pythonTokens = useManager.getBuiltinMod(IPythonNature.DEFAULT_INTERPRETER).getGlobalTokens();
            for (IToken token : pythonTokens) {
                String pyToken = token.getRepresentation();
                String lower = pyToken.toLowerCase();
                if (lower.contains("error") || lower.contains("exception") || lower.contains("warning")) {
                    list.add(pyToken.trim());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.