diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ex/InspectionManagerEx.java b/platform/lang-impl/src/com/intellij/codeInspection/ex/InspectionManagerEx.java index 0e5bd5c69ef5..b46e55ecc3fd 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ex/InspectionManagerEx.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ex/InspectionManagerEx.java @@ -72,6 +72,8 @@ public class InspectionManagerEx extends InspectionManagerBase { toolWindow.setIcon(AllIcons.Toolwindows.ToolWindowInspection); new ContentManagerWatcher(toolWindow, contentManager); contentManager.addContentManagerListener(new ContentManagerAdapter() { + private static final String PREFIX = "of "; + @Override public void contentAdded(ContentManagerEvent event) { handleContentSizeChanged(); @@ -84,16 +86,19 @@ public class InspectionManagerEx extends InspectionManagerBase { private void handleContentSizeChanged() { final int count = contentManager.getContentCount(); - String newStripeTitle = null; if (count == 1) { - newStripeTitle = InspectionsBundle.message("inspection.tool.window.stripe.title.single.content"); + final Content content = contentManager.getContent(0); + final String displayName = content.getDisplayName(); + if (!content.getDisplayName().startsWith(PREFIX)) { + content.setDisplayName(PREFIX + displayName); + } } else if (count > 1) { - newStripeTitle = InspectionsBundle.message("inspection.tool.window.stripe.title.multiple.content"); - } - final String stripeTitle = toolWindow.getStripeTitle(); - if (newStripeTitle != null && !stripeTitle.equals(newStripeTitle)) { - toolWindow.setStripeTitle(newStripeTitle); + for (Content content : contentManager.getContents()) { + if (content.getDisplayName().startsWith(PREFIX)) { + content.setDisplayName(content.getDisplayName().substring(PREFIX.length())); + } + } } } }); diff --git a/platform/platform-resources-en/src/messages/InspectionsBundle.properties b/platform/platform-resources-en/src/messages/InspectionsBundle.properties index 4d5ab4a342f4..7e617bd06883 100644 --- a/platform/platform-resources-en/src/messages/InspectionsBundle.properties +++ b/platform/platform-resources-en/src/messages/InspectionsBundle.properties @@ -710,5 +710,3 @@ todo.comment.problem.descriptor=TODO comment #ref #loc long.line.display.name=Line is longer than allowed by code style inspection.default.annotation.param=Default annotation parameter value -inspection.tool.window.stripe.title.single.content=Inspection Results of -inspection.tool.window.stripe.title.multiple.content=Inspection Results diff --git a/platform/platform-resources-en/src/messages/UIBundle.properties b/platform/platform-resources-en/src/messages/UIBundle.properties index 73a3770f0b8e..013a21d00003 100644 --- a/platform/platform-resources-en/src/messages/UIBundle.properties +++ b/platform/platform-resources-en/src/messages/UIBundle.properties @@ -51,7 +51,7 @@ tool.window.name.run=Run tool.window.name.find=Find tool.window.name.cvs=CVS tool.window.name.hierarchy=Hierarchy -tool.window.name.inspection=Inspection +tool.window.name.inspection=Inspection Results tool.window.name.todo=TODO tool.window.name.dependency.viewer=Dependency Viewer tool.window.name.version.control=Version Control