mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
processElements only in source scope
This commit is contained in:
@@ -32,7 +32,6 @@ import com.intellij.util.CommonProcessors;
|
||||
import com.intellij.util.Processor;
|
||||
import com.intellij.util.SmartList;
|
||||
import com.intellij.util.containers.HashSet;
|
||||
import com.intellij.util.indexing.FileBasedIndex;
|
||||
import com.intellij.util.indexing.IdFilter;
|
||||
import gnu.trove.THashSet;
|
||||
import gnu.trove.TObjectHashingStrategy;
|
||||
@@ -220,7 +219,7 @@ public class PsiShortNamesCacheImpl extends PsiShortNamesCache {
|
||||
@NotNull Processor<? super PsiField> processor,
|
||||
@NotNull GlobalSearchScope scope,
|
||||
@Nullable IdFilter filter) {
|
||||
return StubIndex.getInstance().process(JavaStubIndexKeys.FIELDS, name, myManager.getProject(), scope, filter, processor);
|
||||
return StubIndex.getInstance().process(JavaStubIndexKeys.FIELDS, name, myManager.getProject(), new JavaSourceFilterScope(scope), filter, processor);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -228,7 +227,7 @@ public class PsiShortNamesCacheImpl extends PsiShortNamesCache {
|
||||
@NotNull Processor<? super PsiMethod> processor,
|
||||
@NotNull GlobalSearchScope scope,
|
||||
@Nullable IdFilter filter) {
|
||||
return StubIndex.getInstance().process(JavaStubIndexKeys.METHODS, name, myManager.getProject(), scope, filter, processor);
|
||||
return StubIndex.getInstance().process(JavaStubIndexKeys.METHODS, name, myManager.getProject(), new JavaSourceFilterScope(scope), filter, processor);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -236,7 +235,7 @@ public class PsiShortNamesCacheImpl extends PsiShortNamesCache {
|
||||
@NotNull Processor<? super PsiClass> processor,
|
||||
@NotNull GlobalSearchScope scope,
|
||||
@Nullable IdFilter filter) {
|
||||
return StubIndex.getInstance().process(JavaStubIndexKeys.CLASS_SHORT_NAMES, name, myManager.getProject(), scope, filter, processor);
|
||||
return StubIndex.getInstance().process(JavaStubIndexKeys.CLASS_SHORT_NAMES, name, myManager.getProject(), new JavaSourceFilterScope(scope), filter, processor);
|
||||
}
|
||||
|
||||
private <T extends PsiMember> List<T> filterMembers(Collection<T> members, final GlobalSearchScope scope) {
|
||||
|
||||
Reference in New Issue
Block a user