DropTreeNode dropNode = (DropTreeNode) dl.getPath()
.getLastPathComponent();
// fetch the data and bail if this fails
TrackTransferDto data;
try {
data = (TrackTransferDto) support.getTransferable()
.getTransferData(
new DataFlavor(
DataFlavor.javaJVMLocalObjectMimeType
+ ";class=\""
+ TrackTransferDto.class
.getName() + "\""));
} catch (UnsupportedFlavorException e) {
e.printStackTrace();
return false;
} catch (java.io.IOException e) {
e.printStackTrace();
return false;
} catch (ClassNotFoundException e) {
e.printStackTrace();
return false;
}
((AbstractView) dropNode.getUserObject()).addTracks(data
.getTracks());
return false;// false, damit wieder zur urspruenglichen view
// gesprungen wird.
}