From 3c8638d0a7a565fc5ad5cc370d5ab336c2d72e83 Mon Sep 17 00:00:00 2001 From: Mitchell Herrijgers Date: Mon, 30 Sep 2024 13:36:05 +0100 Subject: [PATCH] Add renderers to class-level popups so they are rendered correctly --- CHANGELOG.md | 3 +++ .../intellij/ide/plugin/markers/ClassLineMarkerProvider.kt | 2 ++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05c0cfd..bd69e9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ # Axon Framework plugin Changelog +## [0.8.8] +- Fix classes not rendering the correct value in popup of classes + ## [0.8.7] - Plugin is now compatible with IDEA 2024.2 (IDEA 242.*) diff --git a/src/main/kotlin/org/axonframework/intellij/ide/plugin/markers/ClassLineMarkerProvider.kt b/src/main/kotlin/org/axonframework/intellij/ide/plugin/markers/ClassLineMarkerProvider.kt index d81d364..78873f2 100644 --- a/src/main/kotlin/org/axonframework/intellij/ide/plugin/markers/ClassLineMarkerProvider.kt +++ b/src/main/kotlin/org/axonframework/intellij/ide/plugin/markers/ClassLineMarkerProvider.kt @@ -55,6 +55,7 @@ class ClassLineMarkerProvider : LineMarkerProvider { val publishers = element.creatorResolver().getCreatorsForPayload(qualifiedName) handlers + publishers }) + .setTargetRenderer { AxonNavigationTargetRenderer.INSTANCE } .createLineMarkerInfo(element) } } @@ -67,6 +68,7 @@ class ClassLineMarkerProvider : LineMarkerProvider { .setTooltipText("Navigate to entities in the same command model hierarchy") .setEmptyPopupText("No related entities were found") .setTargets(NotNullLazyValue.lazy { items }) + .setTargetRenderer { AxonNavigationTargetRenderer.INSTANCE } .createLineMarkerInfo(element) }