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