[java] Improve arch checker notification title and message

(cherry picked from commit 215391f3f5f1a56d4b6e6d9bdc1ad13718eecd0b)

IJ-CR-148865

GitOrigin-RevId: 5470ed33b530169fd40e015b329fc41c6684d122
This commit is contained in:
Louis Vignier
2024-11-05 12:17:13 +01:00
committed by intellij-monorepo-bot
parent 4e0243a930
commit 95e915dfd2
2 changed files with 7 additions and 3 deletions

View File

@@ -39,7 +39,11 @@ internal class BuildManagerVersionChecker(val project: Project, val scope: Corou
if (jdkArch != CpuArch.CURRENT) {
NotificationGroupManager.getInstance()
.getNotificationGroup("JDK Arch Check")
.createNotification(JavaBundle.message("arch.checker.notification.title"), JavaBundle.message("arch.checker.notification.content"), NotificationType.WARNING)
.createNotification(
JavaBundle.message("arch.checker.notification.title"),
JavaBundle.message("arch.checker.notification.content", versionInfo.displayVersionString(), jdkArch.name, CpuArch.CURRENT.name),
NotificationType.WARNING
)
.apply {
addAction(NotificationAction.createSimpleExpiring(JavaBundle.message("arch.checker.notification.project.structure")) {
ProjectSettingsService.getInstance(project).openProjectSettings()