IJPL-253447 Workspace Model: fix notification group in codegen-api version check

(cherry picked from commit 4d0688ef53c081e4d16874672226b73a830bcf89)


Merge-request: IJ-MR-219549
Merged-by: Kirill Bochkarev <kirill.bochkarev@jetbrains.com>

GitOrigin-RevId: b8f6799cc03ed31ef5d30972fc017e57d04b2556
This commit is contained in:
Kirill Bochkarev
2026-08-21 05:00:49 +00:00
committed by intellij-monorepo-bot
parent b94683c89b
commit fb5bcfe653
2 changed files with 9 additions and 1 deletions
@@ -42,6 +42,9 @@
<notificationGroup id="Incompatible codegen api versions"
displayType="BALLOON"
key="notification.workspace.incompatible.codegen.api.versions"/>
<notificationGroup id="Different codegen api versions"
displayType="BALLOON"
key="notification.workspace.compatible.but.different.codegen.api.versions"/>
<notificationGroup id="Workspace code generation not available"
displayType="BALLOON"
key="notification.workspace.code.generation.not.available"/>
@@ -238,7 +238,12 @@ object CodeWriter {
val apiVersionFromDownloadedJar = getApiVersionFromManifest(codeGeneratorFromDownloadedJar::class.java)
if (apiVersionInDevkit == null || apiVersionFromDownloadedJar == null) {
val where = if (apiVersionInDevkit == null) "devkit plugin" else "codegen-impl"
DevKitWorkspaceModelBundle.message("notification.workspace.incompatible.codegen.api.versions.content.none", where)
val groupId = DevKitWorkspaceModelBundle.message("notification.workspace.code.generation.not.available")
val message = DevKitWorkspaceModelBundle.message("notification.workspace.incompatible.codegen.api.versions.content.none", where)
NotificationGroupManager.getInstance()
.getNotificationGroup(groupId)
.createNotification(title = groupId, message, NotificationType.ERROR)
.notify(project)
return false
}