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 228522 - XML-files: show attributes of collapsed tags
Summary: XML-files: show attributes of collapsed tags
Status: REOPENED
Alias: None
Product: editor
Classification: Unclassified
Component: Code folding (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-12 15:24 UTC by argonym
Modified: 2016-07-13 13:47 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 argonym 2013-04-12 15:24:14 UTC
When collapsing XML-tags, only the tag's name is currently displayed.
I think it would make sense to also show the attributes and their value to be able to distinguish lists with tags of the same name.
E.g., instead of:

<table>
<table>
.
.
.

display:

<table name="users" ...>
<table name="groups" ...>
.
.
.
Comment 1 Svata Dedic 2013-04-12 21:07:41 UTC
Might be useful, but would require a heavy user configuration. In general it is not possible to guess which of the attributes is the 'most important one'. Either some heuristic must be applied (show only when there's a single attribute ? Some specific attribute names - id,name,...) or user configuration based on QName must be provided. 
Specific modules (e.g. Spring, JSF, XSL) might register some metadata or comment readers that support more sensible for their XML documents.

BTW definitely not a P1 enhancement, the gain from the feature is not that enormous.
Comment 2 argonym 2013-04-15 05:52:33 UTC
Indeed, I cannot think of any useful heuristic, and configuration might be overkill in relation to the possible benefits (except for on/off maybe, in case a user wants a clean overview).
I'd suggest to be pragmatic and just list the attributes in the order they appear in the node, usually there is also some reasoning underlying that.

Sorry for the wrong priority, I assumed that 'higher number' means 'higher priority'.
Comment 3 Martin Balin 2016-07-07 07:28:27 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss