-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add 'Open Call Hierarchy' hyperlink for type elements too. Fixes #1231 #1367
Conversation
Screenshot? The patch looks nice. |
...pse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/OpenCallHierarchyHyperlinkDetector.java
Show resolved
Hide resolved
Could you please change commit message and put an empty new line before the "Fixes ..." part? |
In the Eclipse SDK 4.32 RC2, on Ctrl+hover I see Open Call Hierarchy for a record ( public class OpenCallHierarchyTest {
public class TestClass { }
public record TestRecord(int x) { }
public enum TestEnum { VAL }
public interface TestInterface { }
} |
Strange ... I just checked with https://download.eclipse.org/eclipse/downloads/drops4/S-4.32RC2a-202406010610/ and it works as expected. (EDIT: works with only other RC1 build as well :https://download.eclipse.org/eclipse/downloads/drops4/S-4.32RC2-202405291800/ ) |
Thanks for checking. You are right, the menu item Open Call Hierarchy is there, but hidden by the horizontal scrollbar on Windows 11 with a high-DPI display (3840 x 2400; scaling: 250%): For the record, the enum and the interface the Ctrl hover menu has only two menu items without scrollbars as expected. |
What it does
Adds 'Open Call Hierarchy' item to the list of "hyperlinks" (actions offered on CTRL + mouse hover) for Java types (classes/enums/records) as well.
How to test
CTRL + mouse hover over various elements in opened editor, 'Open Call Hierarchy' should be offered for elements for which call hierarchy can be actually shown.
Author checklist