Add editor hyperlink option for 'Open in new tab' for Types & Methods#2301
Add editor hyperlink option for 'Open in new tab' for Types & Methods#2301SougandhS wants to merge 1 commit into
Conversation
|
Hi @noopur2507, could you please check this PR when you have some time ? |
732c412 to
b91584b
Compare
b91584b to
bfe7405
Compare
|
Hi @noopur2507 I just modified the entire implementation to show this feature in editor selection hyperlink (cmd+selection on element) this way the context menu wont feel cluttered with this option and this activates only if the implementation is in current editor else it wont activate, so even better now ! Neww.mp4I have updated PR details too.. |
There was a problem hiding this comment.
Pull request overview
Adds a new Java editor hyperlink option intended to open a selected type/method in a new (cloned) editor tab to improve navigation within large files (per Issue #2265).
Changes:
- Introduces a new hyperlink detector and hyperlink implementation to open a type/method in a new tab.
- Registers the detector via
plugin.xmland adds user-visible labels via NLS (JavaEditorMessages+plugin.properties).
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaElementOpenInNewImplementationHyperlink.java |
New hyperlink implementation that opens an editor with MATCH_NONE and reveals the element. |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaElementOpenInNewHyperlinkDetector.java |
New detector that conditionally contributes the “Open In New Tab” hyperlink. |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditorMessages.properties |
Adds NLS string for the hyperlink text. |
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditorMessages.java |
Adds NLS field for the new hyperlink label. |
org.eclipse.jdt.ui/plugin.xml |
Registers the new hyperlink detector extension. |
org.eclipse.jdt.ui/plugin.properties |
Adds display name for the detector. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
This pull request changes some projects for the first time in this development cycle. An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch. Git patchFurther information are available in Common Build Issues - Missing version increments. |
d72dea1 to
862905a
Compare
|
Hi @iloveeclipse |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@iloveeclipse done all the changes 👍 |
Allows opening a type/method in a new cloned editor from java editor hyperlink menu. Improves code navigation, especially when working with large files or understanding multiple methods in parallel. Fixes : eclipse-jdt#2265



Allows opening a method or type in a new editor tab from the hyperlink options (cmd+selection) if the element's implementation in the same editor . Improves code navigation, especially when working with large files or understanding multiple methods or types in parallel.
Fixes : #2265
Neww.mp4
See discussion - #2265
What it does
How to test
Right click context menu on methods -> "open method"
Author checklist