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 63337 - [fold] No folding for comments
Summary: [fold] No folding for comments
Status: VERIFIED DUPLICATE of bug 63348
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-30 15:36 UTC by Jiri Kovalsky
Modified: 2005-11-04 15:20 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 Jiri Kovalsky 2005-08-30 15:36:59 UTC
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 ...
Comment 1 Marek Fukala 2005-10-12 13:30:21 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
Comment 2 Jiri Kovalsky 2005-11-04 15:16:06 UTC
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.
Comment 3 Marek Fukala 2005-11-04 15:19:18 UTC
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 ***
Comment 4 Jiri Kovalsky 2005-11-04 15:20:48 UTC
Okay then ...