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 65137

Summary: Allow to specify sorting of nodes in SortedNodeTreeModel
Product: platform Reporter: Martin Entlicher <mentlicher>
Component: Outline&TreeTableAssignee: Jiri Rechtacek <jrechtacek>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 55226, 64518    

Description Martin Entlicher 2005-09-26 16:59:44 UTC
The sorting of nodes in tree table view is hard-coded. There are just compared
display names. This is not sufficient in some cases (see issue #55226). IMHO a
similar approach that is used for properties should be implemented.

In TreeTableView.SortedNodeTreeModel.getRowComparator() I would expect e.g. a
check whether the Node implements Comparable and use that comparable instead of
n1.getDisplayName().compareTo(n2.getDisplayName()).
Comment 1 Jiri Rechtacek 2009-01-15 16:36:03 UTC
fixed in core-main/rev/de50002894c7