mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
inspection view: allow to invoke other suppression actions in when element is already suppressed in case of unused declaration inspection (IDEA-156821)
This commit is contained in:
+9
-1
@@ -167,7 +167,15 @@ public class UnusedDeclarationPresentation extends DefaultInspectionToolPresenta
|
||||
|
||||
@Override
|
||||
public QuickFixAction[] getQuickFixes(@NotNull final RefEntity[] refElements, CommonProblemDescriptor[] allowedDescriptors) {
|
||||
return myQuickFixActions;
|
||||
boolean showFixes = false;
|
||||
for (RefEntity element : refElements) {
|
||||
if (!getIgnoredRefElements().contains(element) && element.isValid()) {
|
||||
showFixes = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return showFixes ? myQuickFixActions : QuickFixAction.EMPTY;
|
||||
}
|
||||
|
||||
final QuickFixAction[] myQuickFixActions;
|
||||
|
||||
Reference in New Issue
Block a user