From 248c3e3f641c4584d9cb867ae891c15eacb37335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Tue, 29 Apr 2025 16:18:32 +0200 Subject: [PATCH] notifications.md: remove obsolete tabs --- .../notifications.md | 32 ------------------- 1 file changed, 32 deletions(-) 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); - } - -} -``` - - - -