inspection toolwindow: remove redundant "is single run" detection way
[idea/community.git] / platform / lang-impl / src / com / intellij / codeInspection / ui / InspectionResultsView.java
index f77074eb1b8088ac02ffd68bb1faf4951d247453..a560beeb0dc292049d6efdb41ce91bfd280224ba 100644 (file)
@@ -145,7 +145,7 @@ public class InspectionResultsView extends JPanel implements Disposable, Occuren
     myGlobalInspectionContext = globalInspectionContext;
     myProvider = provider;
     myExcludedInspectionTreeNodesManager = new ExcludedInspectionTreeNodesManager(provider instanceof OfflineInspectionRVContentProvider,
-                                                                                  globalInspectionContext.isSingleInspectionRun());
+                                                                                  !myInspectionProfile.isEditable());
 
     myTree = new InspectionTree(myProject, globalInspectionContext, this);
     initTreeListeners();
@@ -696,7 +696,7 @@ public class InspectionResultsView extends JPanel implements Disposable, Occuren
     synchronized (myTreeStructureUpdateLock) {
       InspectionProfileImpl profile = (InspectionProfileImpl)myInspectionProfile;
       boolean isGroupedBySeverity = myGlobalInspectionContext.getUIOptions().GROUP_BY_SEVERITY;
-      boolean singleInspectionRun = myGlobalInspectionContext.isSingleInspectionRun();
+      boolean singleInspectionRun = !myInspectionProfile.isEditable();
       for (Tools currentTools : tools) {
         InspectionToolWrapper defaultToolWrapper = currentTools.getDefaultState().getTool();
         if (myGlobalInspectionContext.getUIOptions().FILTER_RESOLVED_ITEMS &&