Package com.intellij.openapi.roots

Examples of com.intellij.openapi.roots.ProjectFileIndex


    }
  }

  public boolean contains(PsiFile file, NamedScopesHolder holder) {
    Project project = file.getProject();
    ProjectFileIndex fileIndex = ProjectRootManager.getInstance(project).getFileIndex();
    return matchesScope(file, fileIndex) && (myPattern == null || myPattern.matcher(getPackageName(file, fileIndex)).matches());
  }
View Full Code Here


    private final Module myModule;

    public FileScope(PsiFile psiFile) {
      myVirtualFile = psiFile.getVirtualFile();
      Project project = psiFile.getProject();
      ProjectFileIndex fileIndex = ProjectRootManager.getInstance(project).getFileIndex();
      myModule = myVirtualFile != null ? fileIndex.getModuleForFile(myVirtualFile) : null;
    }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.roots.ProjectFileIndex

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.