mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
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:
committed by
intellij-monorepo-bot
parent
b94683c89b
commit
fb5bcfe653
+3
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user