diff --git a/topics/user_interface_components/notifications.md b/topics/user_interface_components/notifications.md index d6c2dbcf5..c935e52f8 100644 --- a/topics/user_interface_components/notifications.md +++ b/topics/user_interface_components/notifications.md @@ -93,12 +93,6 @@ The user can choose the display type corresponding to each notification type und To specify the preferred display type, you need to use [`NotificationGroup`](%gh-ic%/platform/ide-core/src/com/intellij/notification/NotificationGroup.kt) to create notifications. -Please see the following steps for setup, depending on the target platform version. - - - - - `NotificationGroup` is registered in [plugin.xml](plugin_configuration_file.md) using the . Use `key` to provide a localized group display name. @@ -117,7 +111,6 @@ Registered instances can then be obtained via their `id`. > Code insight is available for parameters expecting a notification group `id`. > -
```java public class MyNotifier { @@ -131,28 +124,3 @@ public class MyNotifier { } ``` - -
- - - -`NotificationGroup` is registered in code. - -```java -public class MyNotifier { - - private static final NotificationGroup NOTIFICATION_GROUP = - new NotificationGroup("Custom Notification Group", - NotificationDisplayType.BALLOON, true); - - public static void notifyError(Project project, String content) { - NOTIFICATION_GROUP.createNotification(content, NotificationType.ERROR) - .notify(project); - } - -} -``` - - - -