From b4b41e49588fdbfcd21668210687f74a7f3ac49c Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Tue, 13 May 2025 09:21:27 +0200 Subject: [PATCH] notifications.md: Add information about accessing a project instance --- topics/user_interface_components/notifications.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/topics/user_interface_components/notifications.md b/topics/user_interface_components/notifications.md index c935e52f8..9466fed49 100644 --- a/topics/user_interface_components/notifications.md +++ b/topics/user_interface_components/notifications.md @@ -83,7 +83,9 @@ It has two main advantages: > See [](tool_windows.md#tool-window-notification) for showing balloons for a specific tool window. The specific method used to display a notification is [`Notifications.Bus.notify()`](%gh-ic%/platform/ide-core/src/com/intellij/notification/Notifications.java). -If the current Project is known, please use overload with the ` Project ` parameter, so the notification is shown in its associated frame. +If the current Project is known, please use overload with the `Project` parameter, so the notification is shown in its associated frame. + +> See [how to access a current project instance](project.md#how-to-get-a-project-instance) in different contexts. The text of the notification can include HTML tags for presentation purposes. Use `Notification.addAction(AnAction)` to add links below the content, use [`NotificationAction`](%gh-ic%/platform/ide-core/src/com/intellij/notification/NotificationAction.java) for convenience. @@ -98,7 +100,6 @@ the