FileBasedIndex

This commit is contained in:
Dmitry Lomov
2012-05-10 15:36:35 +02:00
parent 7c677fc88a
commit 1a49cf6aa4
3 changed files with 8 additions and 2 deletions
@@ -37,6 +37,7 @@ import java.util.Set;
* Author: dmitrylomov
*/
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);
@@ -91,6 +92,11 @@ public abstract class FileBasedIndex implements ApplicationComponent {
public abstract <K> void ensureUpToDate(@NotNull ID<K, ?> indexId, @Nullable Project project, @Nullable GlobalSearchScope filter);
protected abstract <K> void ensureUpToDate(@NotNull ID<K, ?> indexId,
@Nullable Project project,
@Nullable GlobalSearchScope filter,
@Nullable VirtualFile restrictedFile);
public abstract void requestRebuild(ID<?, ?> indexId, Throwable throwable);
public abstract <K> void scheduleRebuild(@NotNull ID<K, ?> indexId, @NotNull Throwable e);
@@ -737,6 +737,7 @@ public class FileBasedIndexImpl extends FileBasedIndex {
ensureUpToDate(indexId, project, filter, null);
}
@Override
protected <K> void ensureUpToDate(@NotNull final ID<K, ?> indexId,
@Nullable Project project,
@Nullable GlobalSearchScope filter,
@@ -2144,7 +2145,6 @@ public class FileBasedIndexImpl extends FileBasedIndex {
myIndexableSetToProjectMap.put(set, project);
}
@Override
public void removeIndexableSet(@NotNull IndexableFileSet set) {
myChangedFilesCollector.forceUpdate(null, null, null, true);
myIndexableSets.remove(set);
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2012 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.