mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
use InspectionToolWrapper instead of InspectionTool
This commit is contained in:
@@ -508,9 +508,9 @@ public class InspectionResultsView extends JPanel implements Disposable, Occuren
|
||||
final InspectionTool defaultTool = (InspectionTool)currentTools.getDefaultState().getTool();
|
||||
final HighlightDisplayKey key = HighlightDisplayKey.find(defaultTool.getShortName());
|
||||
for (ScopeToolState state : currentTools.getTools()) {
|
||||
final InspectionTool tool = (InspectionTool)state.getTool();
|
||||
if (myProvider.checkReportedProblems(tool)) {
|
||||
addTool(tool, ((InspectionProfileImpl)profile).getErrorLevel(key, state.getScope(myProject)), isGroupedBySeverity);
|
||||
final InspectionToolWrapper toolWrapper = (InspectionToolWrapper)state.getTool();
|
||||
if (myProvider.checkReportedProblems(toolWrapper)) {
|
||||
addTool(toolWrapper, ((InspectionProfileImpl)profile).getErrorLevel(key, state.getScope(myProject)), isGroupedBySeverity);
|
||||
resultsFound = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user