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 88431 - No code folding for Javadoc, imports, initial comment
Summary: No code folding for Javadoc, imports, initial comment
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords: REGRESSION
: 90336 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-01 15:42 UTC by Jiri Skrivanek
Modified: 2007-11-05 13:39 UTC (History)
4 users (show)

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 Jiri Skrivanek 2006-11-01 15:42:23 UTC
There is no code folding for javadoc comments.

Build 20061101-0917, JDK1.5.0_09, WindowsXP.
Comment 1 Jesse Glick 2006-11-22 00:29:35 UTC
Nor for the initial comment of the file, nor for imports. Note that the Options
dialog still lists "Javadoc Comments", "Initial Comment", and "Imports" under
Editor > General > Code Folding > Collapse by Default, even though checking
these boxes no longer has any effect.

Regression in Retouche -> P2. Confirmed in 20061121, JDK 6, Linux.
Comment 2 Max Sauer 2006-11-29 13:49:42 UTC
CF for imports, initial comment does work now, so do CF options inside Options
Dialog.

However, there are still some drawbacks when compared to 5.5:

1) no folding for classes javadoc comments on top level of a file. However, does
work for inner classes.
2) no folding for method javadoc comments when there is an editor fold
explicitely defined (ie. 'Generated code' for a form file)
3) no folding for initializers and their comments, both static and normal
4) folding for javadoc comments does work for methods, but not for fields

---
NetBeans IDE Dev (Build 061129)
1.6.0-rc; Java HotSpot(TM) Server VM 1.6.0-rc-b104
Linux version 2.6.12-1.1390_FC4smp running on i386
en_US (nb); UTF-8
Comment 3 Jan Lahoda 2006-11-29 16:02:19 UTC
Should be fixed:
Checking in JavaElementFoldManager.java;
/cvs/java/editor/src/org/netbeans/modules/java/editor/fold/JavaElementFoldManager.java,v
 <--  JavaElementFoldManager.java
new revision: 1.4; previous revision: 1.3
done
Comment 4 Jiri Skrivanek 2006-11-30 09:06:07 UTC
Verified.
Comment 5 Jan Lahoda 2006-11-30 10:43:59 UTC
*** Issue 90336 has been marked as a duplicate of this issue. ***