mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
automake: notifications about successful compilations seem to be redundant
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user