mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
read action
This commit is contained in:
@@ -136,7 +136,11 @@ public class AllClassesGetter {
|
||||
|
||||
final Set<String> qnames = new THashSet<String>();
|
||||
|
||||
final GlobalSearchScope scope = filterByScope ? context.getContainingFile().getResolveScope() : GlobalSearchScope.allScope(context.getProject());
|
||||
final GlobalSearchScope scope = ApplicationManager.getApplication().runReadAction(new Computable<GlobalSearchScope>() {
|
||||
public GlobalSearchScope compute() {
|
||||
return filterByScope ? context.getContainingFile().getResolveScope() : GlobalSearchScope.allScope(context.getProject());
|
||||
}
|
||||
});
|
||||
final PrefixMatcher prefixMatcher = set.getPrefixMatcher();
|
||||
|
||||
final boolean lookingForAnnotations = PsiJavaPatterns.psiElement().afterLeaf("@").accepts(context);
|
||||
|
||||
Reference in New Issue
Block a user