mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Extra methods
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user