//tree.getTree().setLayout(new FillLayout()
//this.setLayout(LayoutUtils.createNoBorderGridLayout(2, false));
- DropTarget target = new DropTarget(control, DND.DROP_COPY | DND.DROP_LINK);
+ DropTarget target = new DropTarget(control, DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK | DND.DROP_DEFAULT);
target.setTransfer(getAcceptedDataTypes());
if (control instanceof Tree) {
target.addDropListener(new DropTargetListener() {
}
protected Transfer[] getAcceptedDataTypes() {
- return new Transfer[] { LocalObjectTransfer.getTransfer(), FileTransfer.getInstance() };
+ return new Transfer[] { LocalObjectTransfer.getTransfer(), FileTransfer.getInstance(), TextTransfer.getInstance() };
}
protected void handleDrop(Object data, NodeContext target) {