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 - Allow to specify sorting of nodes in SortedNodeTreeModel
Summary: Allow to specify sorting of nodes in SortedNodeTreeModel
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks: 55226 64518
  Show dependency tree
 
Reported: 2005-09-26 16:59 UTC by Martin Entlicher
Modified: 2009-02-19 22:53 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 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