Java 类com.intellij.util.indexing.IndexableSetContributor 实例源码

项目:intellij-ce-playground    文件:PlatformTestCase.java   
private static Set<VirtualFile> eternallyLivingFiles() {
  if (ourEternallyLivingFilesCache != null) {
    return ourEternallyLivingFilesCache;
  }

  Set<VirtualFile> survivors = new HashSet<VirtualFile>();

  for (IndexedRootsProvider provider : IndexedRootsProvider.EP_NAME.getExtensions()) {
    for (VirtualFile file : IndexableSetContributor.getRootsToIndex(provider)) {
      registerSurvivor(survivors, file);
    }
  }

  ourEternallyLivingFilesCache = survivors;
  return survivors;
}
项目:tools-idea    文件:PlatformTestCase.java   
private static Set<VirtualFile> eternallyLivingFiles() {
  if (ourEternallyLivingFilesCache != null) {
    return ourEternallyLivingFilesCache;
  }

  Set<VirtualFile> survivors = new HashSet<VirtualFile>();

  for (IndexedRootsProvider provider : IndexedRootsProvider.EP_NAME.getExtensions()) {
    for (VirtualFile file : IndexableSetContributor.getRootsToIndex(provider)) {
      registerSurvivor(survivors, file);
    }
  }

  ourEternallyLivingFilesCache = survivors;
  return survivors;
}
项目:consulo    文件:PlatformTestCase.java   
private static Set<VirtualFile> eternallyLivingFiles() {
  if (ourEternallyLivingFilesCache != null) {
    return ourEternallyLivingFilesCache;
  }

  Set<VirtualFile> survivors = new HashSet<VirtualFile>();

  for (IndexableSetContributor provider : IndexableSetContributor.EP_NAME.getExtensions()) {
    for (VirtualFile file : provider.getAdditionalRootsToIndex()) {
      registerSurvivor(survivors, file);
    }
  }

  ourEternallyLivingFilesCache = survivors;
  return survivors;
}