Bug 451597 - [projection] Java editor for nested binary type folds main type's Javadoc as "header comment"
Summary: [projection] Java editor for nested binary type folds main type's Javadoc as ...
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.5   Edit
Hardware: PC Windows 7
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: bugday
Depends on:
Blocks:
 
Reported: 2014-11-14 12:15 EST by Markus Keller CLA
Modified: 2019-10-08 16:59 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2014-11-14 12:15:49 EST
A Java editor for a nested binary type with source attachment folds the main type's Javadoc as a "header comment".

Example: Add JUnit 4 to the build path and then open type org.junit.runners.Parameterized.Parameters or *.Parameterized.Parameter.
(Note that the editor the nested type is different from the editor of the Parameterized class.)

Result: The class Javadoc of org.junit.runners.Parameterized is collapsed.
Expected: nothing collapsed

I'm not sure why the problem doesn't happen for java.lang.Thread.State and java.util.LinkedHashMap.Entry. Nothing seems to be collapsed there, although I'd expect the header comments to be collapsed.

Probably a trivial fix in org.eclipse.jdt.ui.text.folding.DefaultJavaFoldingStructureProvider#computeProjectionRanges(ISourceReference, FoldingStructureComputationContext).
Comment 1 Eclipse Genie CLA 2019-10-08 16:59:50 EDT
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.

If you have further information on the current state of the bug, please add it. 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.