From 453e76d650e5237ddfe4923c2dc21ca43030bd8f Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Sat, 19 Mar 2016 17:34:26 +0300 Subject: [PATCH] inspection tool window: title changed if run inspection by name IDEA-153292 --- .../codeInspection/ex/GlobalInspectionContextImpl.java | 5 ++++- .../src/messages/InspectionsBundle.properties | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java b/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java index 9163102f2fa8..6f48462e275a 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java @@ -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())); } diff --git a/platform/platform-resources-en/src/messages/InspectionsBundle.properties b/platform/platform-resources-en/src/messages/InspectionsBundle.properties index ce1fec43b296..c620f262226f 100644 --- a/platform/platform-resources-en/src/messages/InspectionsBundle.properties +++ b/platform/platform-resources-en/src/messages/InspectionsBundle.properties @@ -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