Displaying Notification

19 views
Skip to first unread message

Darius Weber

unread,
Mar 5, 2020, 10:39:59 AM3/5/20
to resharper-plugins
Hey folks,

Is it possible to display notifications like the "Configure settings to improve performance" notification?

I already found the `JetBrains.Application.Notifications.INotification` interface and the classes `JetBrains.Application.Notifications.UserNotifications` and `JetBrains.Application.Notifications.PerformanceUserNotifications` which seems to be the right way.
But I wasn't able to find a way to use one of these.

Currently I want to inform my users about some changes which affect the plugin settings and may need some reconfiguration.


Kind regards
Darius

Darius Weber

unread,
Mar 5, 2020, 10:39:59 AM3/5/20
to resharper-plugins
Kind regards,
Darius

derigel

unread,
Mar 5, 2020, 11:11:16 AM3/5/20
to resharper-plugins
Hi Darius!

Look at 
JetBrains.Application.Notifications.UserNotifications.CreateNotification

Slava Trenogin

unread,
Mar 5, 2020, 11:13:11 AM3/5/20
to resharper-plugins
UserNotifications is a component, you should inject it in your's components and you get an instance for future usage.

On Thursday, March 5, 2020 at 6:39:59 PM UTC+3, Darius Weber wrote:

Darius Weber

unread,
Mar 8, 2020, 3:25:12 PM3/8/20
to resharper-plugins
Thanks Slava Trenogin and derigel!
It works.
Reply all
Reply to author
Forward
0 new messages