Package org.python.pydev.core

Examples of org.python.pydev.core.IDefinition


        public Definition getModuleDefinitionFromImportInfo(IPythonNature nature, ICompletionCache completionCache) {
            try {
                IDefinition[] definitions = getDefinitions(nature, completionCache);
                int len = definitions.length;
                for (int i = 0; i < len; i++) {
                    IDefinition definition = definitions[i];
                    if (definition instanceof Definition) {
                        Definition d = (Definition) definition;
                        if (d.module != null && d.value.length() == 0 && d.ast == null) {
                            return d;
                        }
View Full Code Here


            }
        }

        int len = definitions.length;
        for (int i = 0; i < len; i++) {
            IDefinition definition = definitions[i];
            boolean doAdd = true;
            if (definition instanceof Definition) {
                Definition d = (Definition) definition;
                doAdd = !findActualTokenFromImportFromDefinition(pythonNature, tok, selected, d, completionCache);
            }
View Full Code Here

        }
        IDefinition[] definitions = m.findDefinition(
                CompletionStateFactory.getEmptyCompletionState(repToCheck, nature, this.completionCache), -1, -1,
                nature);
        for (int i = 0; i < definitions.length; i++) {
            IDefinition foundDefinition = definitions[i];
            if (foundDefinition instanceof AssignDefinition) {
                AssignDefinition d = (AssignDefinition) foundDefinition;

                //if the value is currently None, it will be set later on
                if (d.value.equals("None")) {
View Full Code Here

TOP

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

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.