File tree Expand file tree Collapse file tree
idea_plugin/src/main/java/com/google/googlejavaformat/intellij Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727final class InitialConfigurationStartupActivity implements StartupActivity .Background {
2828
2929 private static final String NOTIFICATION_TITLE = "Enable google-java-format" ;
30- private static final NotificationGroup NOTIFICATION_GROUP =
31- NotificationGroupManager .getInstance ().getNotificationGroup (NOTIFICATION_TITLE );
3230
3331 @ Override
3432 public void runActivity (@ NotNull Project project ) {
@@ -43,9 +41,11 @@ public void runActivity(@NotNull Project project) {
4341 }
4442
4543 private void displayNewUserNotification (Project project , GoogleJavaFormatSettings settings ) {
44+ NotificationGroupManager groupManager = NotificationGroupManager .getInstance ();
45+ NotificationGroup group = groupManager .getNotificationGroup (NOTIFICATION_TITLE );
4646 Notification notification =
4747 new Notification (
48- NOTIFICATION_GROUP .getDisplayId (),
48+ group .getDisplayId (),
4949 NOTIFICATION_TITLE ,
5050 "The google-java-format plugin is disabled by default. "
5151 + "<a href=\" enable\" >Enable for this project</a>." ,
You can’t perform that action at this time.
0 commit comments