This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 241269 - Java editor - Code folding - Initial Comment - not working
Summary: Java editor - Code folding - Initial Comment - not working
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2014-02-01 14:57 UTC by nigel
Modified: 2014-02-04 03:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nigel 2014-02-01 14:57:57 UTC
Initial comment does not collapse on opening java file in editor even though set to do so by default by checking "initial comment" box (Tools -> Options -> Editor -> Folding -> All languages).
Comment 1 Jiri Prox 2014-02-03 07:38:47 UTC
reproducible
Comment 2 Svata Dedic 2014-02-03 09:59:22 UTC
Fixed in jet-main#b0e63e63eeae
regression caused by fix of issue #237364 - opening a file navigate to the start of init comment (pos:0), which kept the comment expanded. Now only non-comment folds will stay expanded if caret location is at/right before the fold start.
Comment 3 Quality Engineering 2014-02-04 03:07:33 UTC
Integrated into 'main-silver', will be available in build *201402040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b0e63e63eeae
User: Svata Dedic <sdedic@netbeans.org>
Log: #241269: special case for comments - only expand if caret is within