Extra methods

This commit is contained in:
Dmitry Lomov
2012-05-10 15:33:05 +02:00
parent 3bb4da93ec
commit 29dfa01cf2
2 changed files with 6 additions and 0 deletions
@@ -39,6 +39,10 @@ import java.util.Set;
public abstract class FileBasedIndex implements ApplicationComponent {
public abstract void iterateIndexableFiles(@NotNull ContentIterator processor, @NotNull Project project, ProgressIndicator indicator);
public abstract void registerIndexableSet(@NotNull IndexableFileSet set, @Nullable Project project);
public abstract void removeIndexableSet(@NotNull IndexableFileSet set);
public static FileBasedIndex getInstance() {
return ApplicationManager.getApplication().getComponent(FileBasedIndex.class);
}
@@ -2139,11 +2139,13 @@ public class FileBasedIndexImpl extends FileBasedIndex {
return new UnindexedFilesFinder();
}
@Override
public void registerIndexableSet(@NotNull IndexableFileSet set, @Nullable Project project) {
myIndexableSets.add(set);
myIndexableSetToProjectMap.put(set, project);
}
@Override
public void removeIndexableSet(@NotNull IndexableFileSet set) {
myChangedFilesCollector.forceUpdate(null, null, null, true);
myIndexableSets.remove(set);