6
6
package io .flutter ;
7
7
8
8
import com .intellij .notification .Notification ;
9
- import com .intellij .notification .NotificationListener ;
10
9
import com .intellij .notification .NotificationType ;
11
10
import com .intellij .notification .Notifications ;
12
11
import com .intellij .openapi .project .Project ;
@@ -23,24 +22,24 @@ public class FlutterMessages {
23
22
private FlutterMessages () {
24
23
}
25
24
26
- public static void showError (String title , @ NotNull String message , @ Nullable Project project ) {
25
+ public static void showError (@ NotNull String title , @ NotNull String message , @ Nullable Project project ) {
27
26
Notifications .Bus .notify (
28
27
new Notification (FLUTTER_NOTIFICATION_GROUP_ID ,
29
28
title ,
30
29
message ,
31
30
NotificationType .ERROR ), project );
32
31
}
33
32
34
- public static void showWarning (String title , String message , @ Nullable Project project ) {
33
+ public static void showWarning (@ NotNull String title , @ NotNull String message , @ Nullable Project project ) {
35
34
Notifications .Bus .notify (
36
35
new Notification (
37
36
FLUTTER_NOTIFICATION_GROUP_ID ,
38
37
title ,
39
38
message ,
40
- NotificationType .WARNING ). setListener ( NotificationListener . URL_OPENING_LISTENER ) , project );
39
+ NotificationType .WARNING ), project );
41
40
}
42
41
43
- public static void showInfo (String title , String message , @ Nullable Project project ) {
42
+ public static void showInfo (@ NotNull String title , @ NotNull String message , @ Nullable Project project ) {
44
43
final Notification notification = new Notification (
45
44
FLUTTER_NOTIFICATION_GROUP_ID ,
46
45
title ,
0 commit comments