Package org.python.pydev.core

Examples of org.python.pydev.core.ProjectMisconfiguredException


            IInterpreterManager relatedInterpreterManager = getRelatedInterpreterManager();
            if (relatedInterpreterManager == null) {
                if (IN_TESTS) {
                    return null;
                }
                throw new ProjectMisconfiguredException("Did not expect the interpreter manager to be null.");
            }

            if (IPythonNature.DEFAULT_INTERPRETER.equals(projectInterpreterName)) {
                //if it's the default, let's translate it to the outside world
                ret = relatedInterpreterManager.getDefaultInterpreterInfo(true);
            } else {
                ret = relatedInterpreterManager.getInterpreterInfo(projectInterpreterName, null);
            }
            if (ret == null) {
                final IProject p = this.getProject();
                final String projectName;
                if (p != null) {
                    projectName = p.getName();
                } else {
                    projectName = "null";
                }

                String msg = "Invalid interpreter: " + projectInterpreterName + " configured for project: "
                        + projectName + ".";
                ProjectMisconfiguredException e = new ProjectMisconfiguredException(msg);
                Log.log(e);
                throw e;

            } else {
                return ret;
            }
        } catch (CoreException e) {
            throw new ProjectMisconfiguredException(e);
        }
    }
View Full Code Here

TOP

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

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.