mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
exception tolerance (IDEA-61510)
This commit is contained in:
@@ -123,13 +123,23 @@ public class FindUsagesManager implements JDOMExternalizable {
|
||||
|
||||
public boolean canFindUsages(@NotNull final PsiElement element) {
|
||||
for (FindUsagesHandlerFactory factory : myHandlers) {
|
||||
if (factory.canFindUsages(element)) {
|
||||
return true;
|
||||
try {
|
||||
if (factory.canFindUsages(element)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOG.error(e);
|
||||
}
|
||||
}
|
||||
for (FindUsagesHandlerFactory factory : Extensions.getExtensions(FindUsagesHandlerFactory.EP_NAME, myProject)) {
|
||||
if (factory.canFindUsages(element)) {
|
||||
return true;
|
||||
try {
|
||||
if (factory.canFindUsages(element)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOG.error(e);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user