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 - [70cat] Collapsing XML needs to collapse to the line level and not just as a tag label itself
Summary: [70cat] Collapsing XML needs to collapse to the line level and not just as a ...
Status: NEW
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@xml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-14 19:52 UTC by esmithbss
Modified: 2011-01-14 19:52 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>