Hello,
I've set DragSupport to my Gallery, that works.
The intended workflow is to drag an image from the gallery to another gallery.
At this point - my question. Is there a possibility to drop an image to the Nebula Gallery?
I didn't find anything, to drop targets, only drag.
I tried:
private void addDropSupport(){
int operations = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK;
Transfer[] types = new Transfer[] { FileTransfer.getInstance() };
DropTarget target = new DropTarget(gallery, operations);
target.setTransfer(types);
target.addDropListener(new DropTargetAdapter(){
public void drop(org.eclipse.swt.dnd.DropTargetEvent event) {
System.out.println("Dropped" + event.data);
};
});
}
Thankful, issueis
[Updated on: Wed, 13 April 2011 10:44] by Moderator