add notification group id

GitOrigin-RevId: 4158b6fda98fd9a112ca4d4f5264f11ac84c4a74
This commit is contained in:
Konstantin Bulenkov
2020-12-03 13:44:50 +01:00
committed by intellij-monorepo-bot
parent 31df2a1b12
commit 1d8a5b0cfa

View File

@@ -82,7 +82,7 @@ public final class EditorColorSchemeDropHandler extends CustomFileDropHandler {
}
colorsManager.setGlobalScheme(imported);
Notification notification = new Notification("", LangBundle.message("notification.title.color.scheme.added"), message, NotificationType.INFORMATION);
Notification notification = new Notification("Editor notifications", LangBundle.message("notification.title.color.scheme.added"), message, NotificationType.INFORMATION);
QuickChangeColorSchemeAction.changeLafIfNecessary(imported, () -> {
new Alarm().addRequest(
() -> Notifications.Bus.notify(notification, project), 300);
@@ -93,7 +93,7 @@ public final class EditorColorSchemeDropHandler extends CustomFileDropHandler {
String title = e.isWarning() ? LangBundle.message("notification.title.color.scheme.added")
: LangBundle.message("notification.title.color.scheme.import.failed");
NotificationType type = e.isWarning() ? NotificationType.WARNING : NotificationType.ERROR;
Notification notification = new Notification("", title, e.getMessage(), type);
Notification notification = new Notification("Editor notifications", title, e.getMessage(), type);
notification.notify(project);
}
return true;