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.
TreeTableView Model should create nodes that have an implementation of o.o.n.Index in their Lookup and thus allowing reorder of child nodes. This is necessary for Drag and Drop to be able to reorder the children.
Created attachment 92291 [details] ReorderableTreeModel and ReorderableTreeModelFilter introduced. Test included.
Created attachment 92292 [details] A simple API change for Watches reordering. Test included.
Please review this API change that adds ability to reorder nodes in debugger views. Together with enhancement #177506 it allows to change order by Drag and Drop. Two new models are introduced: ReorderableTreeModel and ReorderableTreeModelFilter. Ideas for a nicer name are welcomed. When ReorderableTreeModel.canReorder() returns true, the created Node contains o.o.nodes.Index in it's Lookup. Unit test is included. In order to change order of Watches, a simple API change in DebuggerManager is added - two new methods: createWatch(int index, String expr) and reorderWatches(int[] permutation). Unit test is also included.
Thanks for the review, I'll push the change tomorrow.
The APIs added in changeset: 155793:3ed2fed94090 and changeset: 155794:43db124d472c http://hg.netbeans.org/main/rev/3ed2fed94090 http://hg.netbeans.org/main/rev/43db124d472c
Integrated into 'main-golden', will be available in build *200912161400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/3ed2fed94090 User: mentlicher@netbeans.org Log: #178301 - Added createWatch(int index, String expr) and reorderWatches(int[] permutation) methods into DebuggerManager
v/c