Package com.python.pydev.analysis.additionalinfo

Examples of com.python.pydev.analysis.additionalinfo.AdditionalProjectInterpreterInfo


                //Also show to the user the modules available as globals (2.2.3)
                IModulesManager modulesManager = null;
                try {
                    if (additionalInfo instanceof AdditionalProjectInterpreterInfo) {
                        AdditionalProjectInterpreterInfo projectInterpreterInfo = (AdditionalProjectInterpreterInfo) additionalInfo;
                        IProject project = projectInterpreterInfo.getProject();
                        PythonNature nature = PythonNature.getPythonNature(project);
                        if (nature != null) {
                            ICodeCompletionASTManager astManager = nature.getAstManager();
                            if (astManager != null) {
                                modulesManager = astManager.getModulesManager();
View Full Code Here


        public boolean select(Viewer viewer, Object parentElement, Object element) {
            if (element instanceof AdditionalInfoAndIInfo) {
                AdditionalInfoAndIInfo info = (AdditionalInfoAndIInfo) element;
                if (info.additionalInfo instanceof AdditionalProjectInterpreterInfo) {
                    AdditionalProjectInterpreterInfo projectInterpreterInfo = (AdditionalProjectInterpreterInfo) info.additionalInfo;
                    return resourceWorkingSetFilter.select(viewer, parentElement, projectInterpreterInfo.getProject());
                }
            }
            return resourceWorkingSetFilter.select(viewer, parentElement, element);
        }
View Full Code Here

                    if (found != null) {
                        return found;
                    }

                } else if (resource.additionalInfo instanceof AdditionalProjectInterpreterInfo) {
                    AdditionalProjectInterpreterInfo projectInterpreterInfo = (AdditionalProjectInterpreterInfo) resource.additionalInfo;
                    IProject project = projectInterpreterInfo.getProject();
                    if (project != null) {
                        List<IPythonNature> natures = new ArrayList<IPythonNature>();
                        PythonNature n = PythonNature.getPythonNature(project);
                        if (n != null) {
                            natures.add(n);
View Full Code Here

            AdditionalInfoAndIInfo additional = (AdditionalInfoAndIInfo) element;
            element = additional.info;
            String suffix = null;
            try {
                if (additional.additionalInfo instanceof AdditionalProjectInterpreterInfo) {
                    AdditionalProjectInterpreterInfo projectInterpreterInfo = (AdditionalProjectInterpreterInfo) additional.additionalInfo;
                    suffix = projectInterpreterInfo.getProject().getName();

                } else if (additional.additionalInfo instanceof AdditionalSystemInterpreterInfo) {
                    AdditionalSystemInterpreterInfo systemInterpreterInfo = (AdditionalSystemInterpreterInfo) additional.additionalInfo;
                    suffix = systemInterpreterInfo.getManager().getDefaultInterpreterInfo(false).getName();
View Full Code Here

                    AdditionalInfoAndIInfo additional = (AdditionalInfoAndIInfo) obj;
                    try {
                        //Change the pythonNatures given the selection done (so, just investigate the passed nature, not
                        //all of the input natures).
                        if (additional.additionalInfo instanceof AdditionalProjectInterpreterInfo) {
                            AdditionalProjectInterpreterInfo projectInterpreterInfo = (AdditionalProjectInterpreterInfo) additional.additionalInfo;
                            IProject project = projectInterpreterInfo.getProject();
                            PythonNature pythonNature = PythonNature.getPythonNature(project);
                            if (pythonNature != null) {
                                pythonNatures = new ArrayList<IPythonNature>();
                                pythonNatures.add(pythonNature);
                            }
View Full Code Here

                        IModule module = null;

                        IPythonNature pythonNature = null;
                        if (additionalInfo instanceof AdditionalProjectInterpreterInfo) {
                            AdditionalProjectInterpreterInfo projectInterpreterInfo = (AdditionalProjectInterpreterInfo) additionalInfo;
                            pythonNature = PythonNature.getPythonNature(projectInterpreterInfo.getProject());

                        }
                        if (pythonNature == null) {
                            pythonNature = request.nature;
                        }
View Full Code Here

TOP

Related Classes of com.python.pydev.analysis.additionalinfo.AdditionalProjectInterpreterInfo

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.