Hello,

I am using dnd to let the user re-arrange a tree, one element at a time. I can easily get the dragged element but didn't find how to get the drop target. Here is a code snippet:

final TreeDropTarget<IMyModel> target = new TreeDropTarget<IMyModel>(mytree);
target.setAllowSelfAsSource(true);
target.setAllowDropOnLeaf(true);
target.setFeedback(DND.Feedback.BOTH);
target.addDropHandler(new DndDropEvent.DndDropHandler()
{
@Override
public void onDrop(final DndDropEvent event)
{
IMyModel dragged = mytree.getSelectionModel().getSelectedItem();

// TODO get the drop target element!
}
});