UI-Notifications: small update

This commit is contained in:
Yann Cébron 2019-08-23 12:23:07 +02:00
parent 4c25cdb690
commit aed1a0da01

View File

@ -38,6 +38,8 @@ It has two main advantages:
The specific method used to display a notification is The specific method used to display a notification is
[Notifications.Bus.notify()](upsource:///platform/platform-api/src/com/intellij/notification/Notifications.java). [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. 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 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) [NotificationListener](upsource:///platform/platform-api/src/com/intellij/notification/NotificationListener.java)
@ -48,7 +50,7 @@ class.
The `groupDisplayId` parameter of the The `groupDisplayId` parameter of the
[Notification](upsource:///platform/platform-api/src/com/intellij/notification/Notification.java) [Notification](upsource:///platform/platform-api/src/com/intellij/notification/Notification.java)
constructor specifies a notification type. 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 To specify the preferred display type, you need to call
[Notifications.Bus.register()](upsource:///platform/platform-api/src/com/intellij/notification/Notifications.java) [Notifications.Bus.register()](upsource:///platform/platform-api/src/com/intellij/notification/Notifications.java)
before displaying any notifications. before displaying any notifications.