Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » [Nebula Gallery] Drop issue
[Nebula Gallery] Drop issue [message #665167] Wed, 13 April 2011 14:33 Go to next message
Issueis  is currently offline Issueis Friend
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

Re: [Nebula Gallery] Drop issue [message #665579 is a reply to message #665167] Fri, 15 April 2011 07:22 Go to previous message
Issueis  is currently offline Issueis Friend
Messages: 14
Registered: April 2011
Junior Member
I solved this by only allowing TextTransfer and get the Name of the image, where iam able to recap the whole image path.
Previous Topic:ShareMedia/RIM Commons
Next Topic:Grid: ToolTip and image in ColumnHeader
Goto Forum:
  


Current Time: Fri May 10 22:21:15 GMT 2024

Powered by FUDForum. Page generated in 0.03319 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top