Package org.python.pydev.plugin.nature

Examples of org.python.pydev.plugin.nature.PythonNature.resolveModule()


                IFile workspaceFile = locator.getWorkspaceFile(file);
                if (workspaceFile != null && workspaceFile.exists()) {
                    IProject project = workspaceFile.getProject();
                    if (project != null && project.exists()) {
                        PythonNature nature = PythonNature.getPythonNature(project);
                        String moduleName = nature.resolveModule(file);
                        if (moduleName != null) {
                            IModule mod = nature.getAstManager().getModule(moduleName, nature, true);
                            if (mod != null) {
                                ICompletionCache completionCache = new CompletionCache();
                                IDefinition[] definitions = mod.findDefinition(CompletionStateFactory
View Full Code Here


            visitor.memo.put(PyDevBuilderVisitor.IS_FULL_BUILD, false);
            long documentTime = f.getModificationStamp();
            visitor.memo.put(PyDevBuilderVisitor.DOCUMENT_TIME, documentTime);
            String moduleName;
            try {
                moduleName = nature.resolveModule(f);
            } catch (MisconfigurationException e) {
                Log.log(e);
                continue;
            }
            if (moduleName == null) {
View Full Code Here

      ProjectUtils.getFile(project, file);

    // validate the src file.
    }else{
      String filePath = ProjectUtils.getFilePath(project, file);
      String moduleName = nature.resolveModule(filePath);

      IDocument document = ProjectUtils.getDocument(project, file);
      // NOTE: checkForPath is false to support python files w/ file extenstion
      // != .py (like twisted .tac files for example)
      SourceModule module = (SourceModule)AbstractModule.createModuleFromDoc(
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.