From dc2e864253bf18427d2361406aa1b35ad5f26bee Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Mon, 30 Jan 2012 16:53:52 +0100 Subject: [PATCH] automake: notifications about successful compilations seem to be redundant --- .../intellij/compiler/CompileServerManager.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/java/compiler/impl/src/com/intellij/compiler/CompileServerManager.java b/java/compiler/impl/src/com/intellij/compiler/CompileServerManager.java index 6a6ef6bc66af..9e0e25ca9c94 100644 --- a/java/compiler/impl/src/com/intellij/compiler/CompileServerManager.java +++ b/java/compiler/impl/src/com/intellij/compiler/CompileServerManager.java @@ -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); + } } }