inspection toolwindow: remove redundant "is single run" detection way
[idea/community.git] / platform / lang-impl / src / com / intellij / codeInspection / ex / GlobalInspectionContextImpl.java
index 607b55e0b4aabdf0c703ea59643a3dda8018e3c4..7081deb07333a415b4cd12ab217aa8788021f0fa 100644 (file)
@@ -98,7 +98,6 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
   private volatile InspectionResultsView myView;
   private Content myContent;
   private volatile boolean myViewClosed = true;
-  private volatile boolean mySingleInspectionRun;
 
   @NotNull
   private AnalysisUIOptions myUIOptions;
@@ -156,7 +155,7 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
   public void addView(@NotNull InspectionResultsView view) {
     addView(view, view.getCurrentProfileName() == null
                   ? InspectionsBundle.message("inspection.results.title")
-                  : InspectionsBundle.message(mySingleInspectionRun ?
+                  : InspectionsBundle.message(!getCurrentProfile().isEditable() ?
                                               "inspection.results.for.inspection.toolwindow.title" :
                                               "inspection.results.for.profile.toolwindow.title",
                                               view.getCurrentProfileName(), getCurrentScope().getShortenName()), false);
@@ -977,14 +976,6 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
     return myViewClosed;
   }
 
-  public void setSingleInspectionRun(boolean singleInspectionRun) {
-    mySingleInspectionRun = singleInspectionRun;
-  }
-
-  public boolean isSingleInspectionRun() {
-    return mySingleInspectionRun;
-  }
-
   private InspectionRVContentProvider createContentProvider() {
     return new InspectionRVContentProviderImpl(getProject());
   }