mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
read access
This commit is contained in:
@@ -111,10 +111,15 @@ public class FormReferencesSearcher implements QueryExecutor<PsiReference, Refer
|
||||
}
|
||||
|
||||
private static boolean processReferencesInUIForms(Processor<PsiReference> processor,
|
||||
PsiEnumConstant enumConstant,
|
||||
final PsiEnumConstant enumConstant,
|
||||
GlobalSearchScope scope, final LocalSearchScope filterScope) {
|
||||
PsiManagerImpl manager = (PsiManagerImpl)enumConstant.getManager();
|
||||
String className = enumConstant.getName();
|
||||
String className = ApplicationManager.getApplication().runReadAction(new Computable<String>() {
|
||||
@Override
|
||||
public String compute() {
|
||||
return enumConstant.getName();
|
||||
}
|
||||
});
|
||||
return className == null || processReferencesInUIFormsInner(className, enumConstant, processor, scope, manager, filterScope);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user