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.
Development build #20050830-1159 of NetBeans 4.2 Windows XP, JDK 1.5.0_05 EA build #02 Description: ============ As a regression of recent UI changes in XML navigator it is not possible to fold XML comments in the editor. Please get this functionality back. Steps to reproduce: =================== 1. Create new sample web application project and create new XML document in it. 2. Note that default comment section does not have [-] fold icon and nothing ...
fixed Checking in xml/text-edit/src/org/netbeans/modules/xml/text/navigator/TreeNodeAdapter.java; /cvs/xml/text-edit/src/org/netbeans/modules/xml/text/navigator/TreeNodeAdapter.java,v <-- TreeNodeAdapter.java new revision: 1.10; previous revision: 1.9 done Checking in xml/text-edit/src/org/netbeans/modules/xml/text/structure/XMLDocumentModelProvider.java; /cvs/xml/text-edit/src/org/netbeans/modules/xml/text/structure/XMLDocumentModelProvider.java,v <-- XMLDocumentModelProvider.java new revision: 1.10; previous revision: 1.9 done
It works fine for new XML file however does not when whole XML content is modified and Undo is used later. See the following steps to reproduce: 1. Create new sample web application project and create new XML document in it. 2. Press CTRL+A and type A. 3. Press CTRL+Z. 4. Both comment section and <root> tag won't have [-] fold icon. Trying to reproduce in development build #200511031900 of NetBeans 5.0.
The cause of this problem is in fact Issue #63348 (Replacing whole document screws up its tree). The XML folding is based on XMLDocumentModel and once it gets unsynchronized the folding cannot work either. *** This issue has been marked as a duplicate of 63348 ***
Okay then ...