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.
Summary: | [fold] No folding for comments | ||
---|---|---|---|
Product: | xml | Reporter: | Jiri Kovalsky <jkovalsky> |
Component: | Code | Assignee: | Marek Fukala <mfukala> |
Status: | VERIFIED DUPLICATE | ||
Severity: | blocker | ||
Priority: | P4 | ||
Version: | 5.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jiri Kovalsky
2005-08-30 15:36:59 UTC
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 ... |