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 157470 - class/id next to tag in html nav tree
Summary: class/id next to tag in html nav tree
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 6.x
Hardware: PC All
: P4 blocker (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-26 23:33 UTC by phazei
Modified: 2014-10-06 13:27 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 phazei 2009-01-26 23:33:35 UTC
On the html tree it would be great if tags also had their class/id listed next to them so it's easier to identify.  A
mouseover showing all their attributes would be great too, but not nearly as important as simply showing their class/id.
Comment 1 Marek Fukala 2013-09-05 12:40:52 UTC
The current implementation is not in html.editor itself. The breadcrumbs is provided by csl.api which just takes the tree structure of StructureItems for the edited html document and shows nodes for the path corresponding to the root-
Comment 2 Marek Fukala 2013-09-05 12:41:26 UTC
The current implementation is not in html.editor itself. The breadcrumbs is provided by csl.api which just takes the tree structure of StructureItems for the edited html document and shows nodes for the path corresponding to the root->leaf node. 

The display name of the node is taken from StructureItem.getName() at BreadCrumbsTask:189 so I have no way to change it.

A way to customize the displayName is needed here. Possibly some node decorator could be even more suitable.

I think a minimum csl.api change would be to introduce sg. like ExtendedStructureItem which contains a method used to set the node's displayname. The html.editor then can implement this.

AFAIK Svata has been considering some deeper changes to csl.api so lets wait for his opinion.
Comment 3 Marek Fukala 2013-09-05 13:06:57 UTC
Oops, I put the comments to wrong issue - this one wants the id/class in the navigator tree, which is an easy task. I'm sorry, I'll re-post the comment about the breadcrumb to the proper issue.
Comment 4 Marek Fukala 2013-09-05 13:15:00 UTC
And btw this enhancement is already implemented :-)