[Nebula Gallery] Drop issue [message #665167] |
Wed, 13 April 2011 14:33 |
Issueis Messages: 14 Registered: April 2011 |
Junior Member |
|
|
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 14:44] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03194 seconds