mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-253447 Workspace Model: fix notification group in codegen-api version check
(cherry picked from commit 4d0688ef53c081e4d16874672226b73a830bcf89) Merge-request: IJ-MR-219554 Merged-by: Kirill Bochkarev <kirill.bochkarev@jetbrains.com> GitOrigin-RevId: 3ee6f872f20f8bac4cc187fafa66d11558289408
This commit is contained in:
committed by
intellij-monorepo-bot
parent
927085a305
commit
a788a22690
+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