How to enable DnDAwareTree setDropMode behaviour?

Hello, I use DnDAwareTree in same way as in AbstractProjectViewPane.
I want implement reordering in my tree, last part I can't make is showing drop positions between tree rows(setDropMode(DropMode.INSERT) behaviour).
I looked at DnD impelementation of DnDManager and saw that it use java 1.5 DnD.
Please advice me some example, codepointer or code snippet of tree with reordering.
Or better to implement DnD with java 6 TransferHandler?

1 comment
Comment actions Permalink

After trying implement DnD with TransferHandler I found another
problem - within javax.swing.TransferHandler#importData is no way to access com.intellij.ide.dnd.DnDEvent,
so I can't access object from com.intellij.ide.dnd.DnDEvent#getAttachedObject.
This is sadly when drag from DnDAwareTree such as Project View - no way to get selected PsiElements.


Please sign in to leave a comment.