Skip to content

[structure view] show catalog definition location when hovering over a stereotype node #1642

Closed

Description

@martinlippert

When hovering over a stereotype node in the structure tree, a hover should show up, displaying the location where the stereotype was defined (the URL of the catalog JSON file where this stereotype is defined)

Activity

  1. added this to the 5.0.0.RELEASE milestone on Sep 17, 2025
  2. added a commit that references this issue on Sep 17, 2025
  3. added a commit that references this issue on Sep 25, 2025
  4. martinlippert commented on Sep 25, 2025

    @martinlippert
    MemberAuthor

    Changed this from clicking on the node label to a separate inline action that appears on stereotype nodes, which then can be used to navigate to the referenced catalog file.

  5. martinlippert commented on Sep 25, 2025

    @martinlippert
    MemberAuthor

    Navigating to catalog files from inside JAR files doesn't yet work properly, so re-opening this again.

  6. BoykoAlex commented on Oct 2, 2025

    @BoykoAlex
    Contributor

    @martinlippert do we have a project with stereotype JSON files in JAR dependencies to try? I think it'd work now for the default JSON files kept inside spring boot ls, will work for json files inside the workspace somewhere but may not work for JSON on the projects's classpath JARs... at least I'm not completely convinced they'd work...

  7. BoykoAlex commented on Oct 3, 2025

    @BoykoAlex
    Contributor

    Actually, JDT URIs only work for classes and none of the other resources :-
    We'd have to either implement support for JAR file entries from our extension or add support for getting content of JAR file entries in JDT LS, i.e. widen support for JDT URIs to include non-class files

  8. martinlippert commented on Oct 3, 2025

    @martinlippert
    MemberAuthor

    @martinlippert do we have a project with stereotype JSON files in JAR dependencies to try?

    https://github.com/odrotbohm/spring-restbucks

    This one is especially interesting to test since it uses Spring Modulith and therefore renders the tree in a slightly more specialized version.

    You could also add one of the JMolecules integration models to your project dependencies:

    <dependency>
    	<groupId>org.jmolecules</groupId>
    	<artifactId>jmolecules-ddd</artifactId>
    	<version>2.0.0-SNAPSHOT</version>
    </dependency>
    

    This lib (for example) already contains a jmolecules-stereotypes.json catalog file.

  9. BoykoAlex commented on Oct 3, 2025

    @BoykoAlex
    Contributor

    Yep... I have restbucks. I've tried it and can confirm that only .class files from JARs can be opened in VSCode via java.file.open... The stereotype json files live in jmolecules-spring JAR for that project... Those json files don't open :-\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

for: vscodetheme: structural viewtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions