TreeTableView Model should support DnD so that DnD can be implemented for debugger views.
Created attachment 91768 [details]
Added ability to define allowed drop actions based on the transferable.
Created attachment 91769 [details]
Introduce DnDNodeModel and DnDNodeModelFilter
Please review API support for DnD in Viewmodel module. It allows to implement DnD of debugger watches.
I've added the ability to define allowed drop actions based on the transferable into OutlineView - that enables us to set the DnD action resonably (to COPY when DnD expression from Editor and to MOVE when moving watches inside of the view).
DnDNodeModel and DnDNodeModelFilter are to be implemented by clients to implement DnD (e.g. by watches model).
Thanks for the review, I'll push the change tomorrow.
Y01 I cannot find a single @since tag. Am I blind or there is really no new method in a publicly visible API?
Created attachment 92096 [details]
Created attachment 92097 [details]
Oops, I did not noticed that the attached diff does not contain the two new interfaces - DnDNodeModel and DnDNodeModelFilter.
hg diff does not print ? <file> for new files unlike CVS did. :-(
The interfaces contain the @since tag.
API for DnD was added into the viewmodel in several changesets:
Integrated into 'main-golden', will be available in build *200912070253* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Log: #177506 - Support for Drag and Drop added.