automake: notifications about successful compilations seem to be redundant
authorEugene Zhuravlev <jeka@intellij.com>
Mon, 30 Jan 2012 15:53:52 +0000 (16:53 +0100)
committerEugene Zhuravlev <jeka@intellij.com>
Mon, 30 Jan 2012 15:55:26 +0000 (16:55 +0100)
java/compiler/impl/src/com/intellij/compiler/CompileServerManager.java

index 6a6ef6bc66af6d0aadba29e6bec6e4d21bc3eb44..9e0e25ca9c94efeac34831ffe1b41c3756d547dd 100644 (file)
@@ -695,13 +695,13 @@ public class CompileServerManager implements ApplicationComponent{
 
     @Override
     public void sessionTerminated() {
-      String statusMessage = "Auto make completed";
+      String statusMessage = null/*"Auto make completed"*/;
       switch (myBuildStatus) {
         case SUCCESS:
-          statusMessage = "Auto make completed successfully";
+          //statusMessage = "Auto make completed successfully";
           break;
         case UP_TO_DATE:
-          statusMessage = "All files are up-to-date";
+          //statusMessage = "All files are up-to-date";
           break;
         case ERRORS:
           statusMessage = "Auto make completed with errors";
@@ -710,9 +710,11 @@ public class CompileServerManager implements ApplicationComponent{
           statusMessage = "Auto make has been canceled";
           break;
       }
-      final Notification notification = CompilerManager.NOTIFICATION_GROUP.createNotification(statusMessage, MessageType.INFO);
-      if (!myProject.isDisposed()) {
-        notification.notify(myProject);
+      if (statusMessage != null) {
+        final Notification notification = CompilerManager.NOTIFICATION_GROUP.createNotification(statusMessage, MessageType.INFO);
+        if (!myProject.isDisposed()) {
+          notification.notify(myProject);
+        }
       }
     }