Files
openide/plugins/devkit/devkit-java-tests/testData/references/pluginConfigReference/NotificationGroupId.java
Roman Shevchenko da59dcf960 [devkit] updating notification group test data
GitOrigin-RevId: 9a3332c5f8bb0a842e923cf83e16014968e81355
2021-05-10 11:01:40 +00:00

17 lines
1006 B
Java

import com.intellij.notification.Notification;
import com.intellij.notification.NotificationBuilder;
import com.intellij.notification.NotificationGroupManager;
import com.intellij.notification.NotificationType;
public class NotificationGroupId {
public static void main(String[] args) {
new Notification("my.balloon", "Content", NotificationType.INFORMATION);
new NotificationBuilder("my.balloon", "Content", NotificationType.WARNING);
NotificationGroupManager.getInstance().getNotificationGroup("my.balloon");
new Notification("<error descr="Cannot resolve notification group id 'INVALID_VALUE'">INVALID_VALUE</error>", "Content", NotificationType.INFORMATION);
new NotificationBuilder("<error descr="Cannot resolve notification group id 'INVALID_VALUE'">INVALID_VALUE</error>", "Content", NotificationType.WARNING);
NotificationGroupManager.getInstance().getNotificationGroup("<error descr="Cannot resolve notification group id 'INVALID_VALUE'">INVALID_VALUE</error>");
}
}