Skip to content

Commit 43593e3

Browse files
committed
GH-1642: prepare hover festure for stereotype origin in structure view
1 parent 225757b commit 43593e3

File tree

1 file changed

+2
-0
lines changed
  • headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/commands

1 file changed

+2
-0
lines changed

headless-services/spring-boot-language-server/src/main/java/org/springframework/ide/vscode/boot/java/commands/JsonNodeHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public class JsonNodeHandler<A, C> implements NodeHandler<A, StereotypePackageEl
4545

4646
public static final String ICON = "icon";
4747
public static final String TEXT = "text";
48+
public static final String HOVER = "hover";
4849

4950
private final Node root;
5051
private final LabelProvider<A, StereotypePackageElement, StereotypeClassElement, StereotypeMethodElement, C> labels;
@@ -63,6 +64,7 @@ public void handleStereotype(Stereotype stereotype, NodeContext context) {
6364
addChild(node -> node
6465
.withAttribute(TEXT, labels.getStereotypeLabel(stereotype))
6566
.withAttribute(ICON, StereotypeIcons.getIcon(stereotype))
67+
.withAttribute(HOVER, "<stereotype catalog source coming soon...>")
6668
);
6769
}
6870

0 commit comments

Comments
 (0)