inspection tool window: title changed if run inspection by name IDEA-153292

This commit is contained in:
Dmitry Batkovich
2016-03-19 17:34:26 +03:00
parent d3f6342d38
commit 453e76d650
2 changed files with 5 additions and 1 deletions
@@ -141,7 +141,10 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
public void addView(@NotNull InspectionResultsView view) {
addView(view, view.getCurrentProfileName() == null
? InspectionsBundle.message("inspection.results.title")
: InspectionsBundle.message("inspection.results.for.profile.toolwindow.title", view.getCurrentProfileName()));
: InspectionsBundle.message(mySingleInspectionRun ?
"inspection.results.for.inspection.toolwindow.title" :
"inspection.results.for.profile.toolwindow.title",
view.getCurrentProfileName()));
}
@@ -316,6 +316,7 @@ inspection.unused.symbol.check.classes=Check &Classes
inspection.unused.symbol.check.parameters=Check &Parameters
inspection.results.for.profile.toolwindow.title=Results for Inspection Profile ''{0}''
inspection.results.for.inspection.toolwindow.title=Results for Inspection ''{0}''
inspection.export.results.invalidated.item=invalidated item
inspection.export.results.at.line=at line