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 194365

Summary: [70cat] Collapsing XML needs to collapse to the line level and not just as a tag label itself
Product: xml Reporter: esmithbss <esmithbss>
Component: Text-EditAssignee: issues@xml <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description esmithbss 2011-01-14 19:52:49 UTC
Product Version = NetBeans IDE Dev (Build 201101140000)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) Client VM 17.1-b03

The current implementation of code collapse for XML collapses from the end of the actual XML tag to the end of the closing tag.  When the tag is used multiple times within an xml file (like the target tag within an ant build.xml file) the result is a list of indistinguishable tags which is useless for the developer.

The collapse operation should collapse to the level of a line and leave context in the display.


Example:

Current:

<?xml version="1.0" encoding="UTF-8"?>
<project name="RebuildDatabase" default="all" basedir=".">
    <target>
    <target>
    <target>
    <target>
    <target>
    <target>
    <target>
    <target>
</project>


Should be:

<?xml version="1.0" encoding="UTF-8"?>
<project name="RebuildDatabase" default="all" basedir=".">
    <target name="all".../>
    <target name="clean" .../>
    <target name="init" .../>
    <target name="jaxb-generate" .../>
    <target name="compile" .../>
    <target name="jar" .../>
    <target name="test" .../>
    <target name="dist" .../>
</project>