vcs: let successful commit message hide away

Rename the notification group for non-sticky balloons to let it reuse
not only in "minor" notifications.

As part of IDEA-151547.
This commit is contained in:
Kirill Likhodedov
2016-02-26 15:31:21 +03:00
parent 7540801ef1
commit 68720ceb28
2 changed files with 6 additions and 6 deletions
@@ -29,8 +29,8 @@ public class VcsNotifier {
"Vcs Messages", ChangesViewContentManager.TOOLWINDOW_ID);
public static final NotificationGroup IMPORTANT_ERROR_NOTIFICATION = new NotificationGroup(
"Vcs Important Messages", NotificationDisplayType.STICKY_BALLOON, true);
public static final NotificationGroup MINOR_NOTIFICATION = new NotificationGroup(
"Vcs Minor Notifications", NotificationDisplayType.BALLOON, true);
public static final NotificationGroup STANDARD_NOTIFICATION = new NotificationGroup(
"Vcs Notifications", NotificationDisplayType.BALLOON, true);
public static final NotificationGroup SILENT_NOTIFICATION = new NotificationGroup(
"Vcs Silent Notifications", NotificationDisplayType.NONE, true);
@@ -128,7 +128,7 @@ public class VcsNotifier {
@NotNull
public Notification notifyMinorWarning(@NotNull String title, @NotNull String message, @Nullable NotificationListener listener) {
return notify(MINOR_NOTIFICATION, title, message, NotificationType.WARNING, listener);
return notify(STANDARD_NOTIFICATION, title, message, NotificationType.WARNING, listener);
}
@NotNull
@@ -158,7 +158,7 @@ public class VcsNotifier {
@NotNull
public Notification notifyMinorInfo(@NotNull String title, @NotNull String message, @Nullable NotificationListener listener) {
return notify(MINOR_NOTIFICATION, title, message, NotificationType.INFORMATION, listener);
return notify(STANDARD_NOTIFICATION, title, message, NotificationType.INFORMATION, listener);
}
public Notification logInfo(@NotNull String title, @NotNull String message) {
@@ -56,7 +56,7 @@ import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import static com.intellij.openapi.vcs.VcsNotifier.IMPORTANT_ERROR_NOTIFICATION;
import static com.intellij.openapi.vcs.VcsNotifier.STANDARD_NOTIFICATION;
public class CommitHelper {
public static final Key<Object> DOCUMENT_BEING_COMMITTED_KEY = new Key<Object>("DOCUMENT_BEING_COMMITTED");
@@ -201,7 +201,7 @@ public class CommitHelper {
title = "Committed Successfully";
type = NotificationType.INFORMATION;
}
VcsNotifier.createNotification(IMPORTANT_ERROR_NOTIFICATION, title, getCommitSummary(processor), type, null).notify(myProject);
VcsNotifier.createNotification(STANDARD_NOTIFICATION, title, getCommitSummary(processor), type, null).notify(myProject);
}
@NotNull