Skip to content

Commit 06052e4

Browse files
Query handlers are more easily identifiable in line marker popup
1 parent 731b5cb commit 06052e4

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
# Axon Framework plugin Changelog
44

5+
## [unreleased]
6+
7+
### Changed
8+
9+
- Query handlers are more easily identifiable in line marker popup
10+
511
## [0.5.1]
612

713
### Fixed

src/main/kotlin/org/axonframework/intellij/ide/plugin/resolving/handlers/types/QueryHandler.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package org.axonframework.intellij.ide.plugin.resolving.handlers.types
1919
import com.intellij.psi.PsiMethod
2020
import org.axonframework.intellij.ide.plugin.api.Handler
2121
import org.axonframework.intellij.ide.plugin.api.MessageHandlerType
22+
import org.axonframework.intellij.ide.plugin.util.containingClassname
2223

2324
/**
2425
* Represents a method being able to handle a query.
@@ -34,6 +35,10 @@ data class QueryHandler(
3435
override val handlerType: MessageHandlerType = MessageHandlerType.QUERY
3536

3637
override fun renderText(): String {
38+
return "${element.containingClassname()}.${element.name}"
39+
}
40+
41+
override fun renderContainerText(): String {
3742
return componentName
3843
}
3944
}

src/test/kotlin/org/axonframework/intellij/ide/plugin/markers/publishers/PublishMethodLineMarkerProviderTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class PublishMethodLineMarkerProviderTest : AbstractAxonFixtureTestCase() {
152152

153153
assertThat(hasLineMarker(PublishMethodLineMarkerProvider::class.java)).isTrue
154154
assertThat(getLineMarkerOptions(PublishMethodLineMarkerProvider::class.java)).containsExactly(
155-
OptionSummary("some-group", null, AxonIcons.Handler)
155+
OptionSummary("MyProcessingGroup.handle", "some-group", AxonIcons.Handler)
156156
)
157157
}
158158

@@ -175,7 +175,7 @@ class PublishMethodLineMarkerProviderTest : AbstractAxonFixtureTestCase() {
175175

176176
assertThat(hasLineMarker(PublishMethodLineMarkerProvider::class.java)).isTrue
177177
assertThat(getLineMarkerOptions(PublishMethodLineMarkerProvider::class.java)).containsExactly(
178-
OptionSummary("test", null, AxonIcons.Handler)
178+
OptionSummary("MyProcessingGroup.handle", "test", AxonIcons.Handler)
179179
)
180180
}
181181

0 commit comments

Comments
 (0)