Skip to content

Commit 8c6e78c

Browse files
raghucssitiloveeclipse
authored andcommitted
N&N for Show Javadoc from annotation/quick‑fix hover
see eclipse-jdt/eclipse.jdt.ui#2673
1 parent e081c3c commit 8c6e78c

3 files changed

Lines changed: 38 additions & 5 deletions

File tree

64 KB
Loading
56.5 KB
Loading

news/4.39/jdt.md

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,48 @@ A special thanks to everyone who [contributed to JDT](acknowledgements.md#java-d
1616
---
1717
## Java Editor
1818

19-
### Folding with Showing Selected Java Elements
19+
### Folding With Showing Selected Java Elements
2020
<details>
2121
<summary>Contributors</summary>
2222

2323
- [Daniel Schmid](https://github.com/danthe1st)
2424
</details>
2525

2626
Folding can now be used in the Java Editor when `Window` > `Preferences` > `Java` > `Editor` > `Only show the selected Java element` is enabled.
27+
2728
In previous releases, this option automatically disabled code folding.
2829

30+
### Show Javadoc From Annotation/Quick‑Fix Hover
31+
<details>
32+
<summary>Contributors</summary>
33+
34+
- [Raghunandana M](https://github.com/raghucssit)
35+
- [Andrey Loskutov](https://github.com/iloveeclipse)
36+
</details>
37+
38+
The annotation/quick‑fix hover now includes a “Javadoc” proposal that opens the Javadoc information pop‑up for the Java element referenced by the annotation.
39+
40+
You can now view an element’s API documentation directly from an annotation hover without navigating to the element’s source file.
41+
42+
Previously annotation hover took precedence and blocked the usual Javadoc pop‑up for the element under the annotation.
43+
To read the Javadoc you had to open or navigate to the original Java source.
44+
45+
The fix removes that friction.
46+
47+
#### Annotation Hover Javadoc Behavior
48+
- When an annotation/quick‑fix hover is shown and the annotation refers to a Java element that has Javadoc, a “Show Javadoc” entry appears in the hover’s proposals list.
49+
- Activating the proposal opens the standard Javadoc information control (the same browser‑based Javadoc pop‑up used elsewhere).
50+
- The Javadoc pop‑up replaces the annotation hover for a natural, contextual display.
51+
- The Javadoc pop‑up is closed automatically when the user clicks outside — preventing stale pop‑ups.
52+
53+
New Show Javadoc proposal in annotation hover
54+
55+
![Show Javadoc proposal in annotation hover](images/ShowJavadocQuickfix.png)
56+
57+
Javadoc pop‑up shown after activating the proposal
58+
59+
![Javadoc pop‑up shown after activating the proposal](images/JavadocControl.png)
60+
2961
<!--
3062
---
3163
## Java Views and Dialogs
@@ -44,22 +76,23 @@ In previous releases, this option automatically disabled code folding.
4476
## Debugger
4577

4678

47-
### Improved Highlighting for Inline Chained Lambdas
79+
### Improved Highlighting For Inline Chained Lambdas
4880

4981
<details>
5082
<summary>Contributors</summary>
5183

5284
- [Sougandh S](https://github.com/SougandhS)
5385
</details>
5486

55-
5687
Building on the `inline lambda breakpoint` support added in **Eclipse 4.38**, the Java debugger now highlights the specific inline lambda expression when it is suspended.
57-
Previously, selecting or focusing a lambda stack frame in a chained expression highlighted the entire line, making it difficult to identify the exact lambda.
88+
89+
Previously, selecting or focusing a lambda stack frame in a chained expression highlighted the entire line, making it difficult to identify the exact lambda.
90+
5891
Now only the suspended lambda is highlighted, making it much easier to follow execution in complex chained expressions.
5992

6093
![Lambda Highlighting](images/LambdaHighlight.gif)
6194

6295

6396
<!--
6497
### JDT Developers
65-
-->
98+
-->

0 commit comments

Comments
 (0)