Skip to content

Navigational aid for Spring Events #1348

Closed

Description

@jonsmithers

Expected Behavior

Anytime you trigger or listen for a spring event, IntelliJ presents these gutter icons. When clicked, a popup will list every place that triggers the event you're listening for OR every place that listens for the event that you're triggering, allowing you to easily jump to these locations. I like this feature.

Screenshot 2024-09-09 at 5 04 04 PM Screenshot 2024-09-09 at 5 05 05 PM

Current Behavior

Currently there is nothing to aid navigation between event listeners and triggerers.

Context

This feature is pretty handy in a codebase that relies on Spring Events.

As an alternative, I could consider refactoring the code to not use Spring Events. Spring Events are harder to navigate compared to plain old function invocations, unless the IDE provides this navigational aid.

Activity

  1. changed the title [-]Aid for navigating Spring Events[/-] [+]Navigational aid for Spring Events[/+] on Sep 9, 2024
  2. added
    for: eclipse
    for: vscode
    and removed on Sep 10, 2024
  3. martinlippert commented on Sep 10, 2024

    @martinlippert
    Member

    Thanks @jonsmithers for raising this enhancement request, sounds indeed like a great feature to add. Let's see how we can get this realized.

    Do you use the Spring Tools in Eclipse or VSCode?

  4. added this to the 4.27.0.RELEASE milestone on Sep 10, 2024
  5. jonsmithers commented on Sep 10, 2024

    @jonsmithers
    Author

    Using vscode here! And awesome, thank you!

  6. 3 remaining items

  7. added 2 commits that reference this issue on Jan 30, 2025
  8. martinlippert commented on Jan 31, 2025

    @martinlippert
    Member

    The first version of this includes basic information about event listeners and event publishers in the internal index for Spring elements and allows to use the "Go To References" feature inside of VSCode to find all publishers for the specific event type when invoked from a listener and vice versa.

    There are no gutter icons or features in the gutter for this specifically, the type hierarchy of events is not yet taken into account, and there is no way to invoke this from the Java editor inside of Eclipse yet. All those things should be captured in separate issues as improvements moving forward.

  9. martinlippert commented on Jan 31, 2025

    @martinlippert
    Member

    (please note that even though the 4.28.0 release is not yet out there, this will appear starting from release 4.29.0.

  10. added 9 commits that reference this issue on Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: eclipsefor: vscodetheme: spring index & symbolstype: enhancement

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions