Package org.python.pydev.core

Examples of org.python.pydev.core.NotConfiguredInterpreterException


            return pythonNature;
        }

        Tuple<IPythonNature, String> infoForFile = PydevPlugin.getInfoForFile(getEditorFile());
        if (infoForFile == null) {
            NotConfiguredInterpreterException e = new NotConfiguredInterpreterException();
            ErrorDialog.openError(PyAction.getShell(), "Error: no interpreter configured",
                    "Interpreter not configured\n(Please, Configure it under window->preferences->PyDev)",
                    PydevPlugin.makeStatus(IStatus.ERROR, e.getMessage(), e));
            throw e;

        }
        pythonNature = infoForFile.o1;
        return pythonNature;
View Full Code Here


            if (PyDialogHelpers.getAskAgainInterpreter(this)) {
                configureInterpreterJob.addInterpreter(this);
                configureInterpreterJob.schedule(50);
            }
        }
        throw new NotConfiguredInterpreterException(errorMsg);
    }
View Full Code Here

        try {
            if (interpreterManager.getDefaultInterpreterInfo(false) != null) {
                text = python + " console";
                enabled = true;
            } else {
                throw new NotConfiguredInterpreterException();
            }
        } catch (MisconfigurationException e) {
            text = "Unable to create console for " + python + " (interpreter not configured)";
        }
        checkBox.setText(text);
View Full Code Here

                    if (nature.getRelatedInterpreterManager().getDefaultInterpreterInfo(false) != null) {
                        text = "Console for currently active editor";
                        enabled = true;
                    } else {
                        throw new NotConfiguredInterpreterException();
                    }
                } else {
                    text = "No python nature configured for the current editor";
                }
            } else {
View Full Code Here

TOP

Related Classes of org.python.pydev.core.NotConfiguredInterpreterException

Copyright © 2018 www.massapicom. 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.