inspection view: use getShortName() instead of getDisplayName() in green code notific...
authorDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Tue, 26 Jul 2016 08:33:31 +0000 (11:33 +0300)
committerDmitry Batkovich <dmitry.batkovich@jetbrains.com>
Tue, 26 Jul 2016 08:33:31 +0000 (11:33 +0300)
platform/lang-impl/src/com/intellij/codeInspection/ex/GlobalInspectionContextImpl.java

index ae51adce63183b7e70e39832749b168992cc651e..8fef150fbf79d1f09d811cd415a1d467b248f8fa 100644 (file)
@@ -348,7 +348,10 @@ public class GlobalInspectionContextImpl extends GlobalInspectionContextBase imp
 
       InspectionResultsView view = myView == null ? new InspectionResultsView(this, createContentProvider()) : null;
       if (!(myView == null ? view : myView).hasProblems()) {
-        NOTIFICATION_GROUP.createNotification(InspectionsBundle.message("inspection.no.problems.message", scope.getFileCount(), scope.getDisplayName()), MessageType.INFO).notify(getProject());
+        NOTIFICATION_GROUP.createNotification(InspectionsBundle.message("inspection.no.problems.message",
+                                                                        scope.getFileCount(),
+                                                                        scope.getShortenName()),
+                                              MessageType.INFO).notify(getProject());
         close(true);
         if (view != null) {
           Disposer.dispose(view);