| Summary: | [hovering][projection] ProjectionAnnotationHover uses wrong line count to compute the hover information | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Sebastian Zarnekow <sebastian.zarnekow> |
| Component: | Text | Assignee: | Platform-Text-Inbox <platform-text-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | daniel.stein, daniel_megert, remy.suen |
| Version: | 3.2 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | stalebug | ||
Broken since 3.2. *** Bug 306145 has been marked as a duplicate of this bug. *** Deepak, please investigate. This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |
Consider the following Java class: /** * * * * * * * * */ public class FooBar { } If you collapse the leading multi line comment and hover of over the small (+) icon to see the collapsed text, you'll only get the first 4 lines of the comment instead of the full region. Please note also that adding a number of empty lines inside the class body or to the end of the file will increase the number of visible lines in the hover. I assume the bug is caused by org.eclipse.jface.text.source.AnnotationBarHoverManager.computeInformation() which uses #adaptLineRange to reduce the visible lines in the hover to the number of lines that are currently visible in the source viewer - which may be smaller than the number of folded lines.