From aed1a0da012254a2c96c84dc97c7d564694e707b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Fri, 23 Aug 2019 12:23:07 +0200 Subject: [PATCH] UI-Notifications: small update --- user_interface_components/notifications.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/user_interface_components/notifications.md b/user_interface_components/notifications.md index f0ac207f2..e1dca3858 100644 --- a/user_interface_components/notifications.md +++ b/user_interface_components/notifications.md @@ -38,6 +38,8 @@ It has two main advantages: The specific method used to display a notification is [Notifications.Bus.notify()](upsource:///platform/platform-api/src/com/intellij/notification/Notifications.java). +If the current Project is known, please use overload with `Project` parameter, so the notification is shown in its associated frame. + The text of the notification can include HTML tags. You can allow the user to interact with the notification by including hyperlink tags in the notification text and passing a [NotificationListener](upsource:///platform/platform-api/src/com/intellij/notification/NotificationListener.java) @@ -48,7 +50,7 @@ class. The `groupDisplayId` parameter of the [Notification](upsource:///platform/platform-api/src/com/intellij/notification/Notification.java) constructor specifies a notification type. -The user can choose the display type corresponding to each notification type under `Settings | Notifications`. +The user can choose the display type corresponding to each notification type under `Settings | Appearance and Behavior | Notifications`. To specify the preferred display type, you need to call [Notifications.Bus.register()](upsource:///platform/platform-api/src/com/intellij/notification/Notifications.java) before displaying any notifications.