Skip to content

Commit 89a10af

Browse files
authored
[verifier] migrate off to-be-removed Messages API (#8776)
Slated for removal as of 2026.1. In this case we can just go right to the `MessagesService` API this convenience wrapper was delegating to. <img width="1936" height="606" alt="image" src="https://github.com/user-attachments/assets/72e03f46-f86f-4176-8377-0bd1110118e0" /> See: #8764 --- - [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR. <details> <summary>Contribution guidelines:</summary><br> - See our [contributor guide]([https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md](https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Dart contributions to our repos should follow the [Dart style guide](https://dart.dev/guides/language/effective-dart) and use `dart format`. - Java and Kotlin contributions should strive to follow Java and Kotlin best practices ([discussion](#8098)). </details>
1 parent 486624a commit 89a10af

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/io/flutter/FlutterMessages.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import com.intellij.notification.NotificationType;
1010
import com.intellij.notification.Notifications;
1111
import com.intellij.openapi.project.Project;
12-
import com.intellij.openapi.ui.Messages;
12+
import com.intellij.openapi.ui.messages.MessagesService;
1313
import icons.FlutterIcons;
1414
import org.jetbrains.annotations.Nls;
1515
import org.jetbrains.annotations.NotNull;
@@ -54,8 +54,9 @@ public static int showDialog(@Nullable Project project,
5454
@NotNull @Nls String title,
5555
@NotNull String[] options,
5656
int defaultOptionIndex) {
57-
return Messages.showIdeaMessageDialog(project, message, title,
58-
options, defaultOptionIndex,
59-
FlutterIcons.Flutter_2x, null);
57+
return MessagesService.getInstance()
58+
.showMessageDialog(project, null, message, title,
59+
options, defaultOptionIndex, -1,
60+
FlutterIcons.Flutter_2x, null, true, null);
6061
}
6162
}

0 commit comments

Comments
 (0)