Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321266

Summary: [DND] Support DragSourceEffect when using drag 'n drop
Product: [RT] RAP Reporter: Paul Kendall <pkendall64>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: mwirth
Version: 1.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Paul Kendall CLA 2010-07-29 15:38:52 EDT
I have a list of objects which I can drag from the list to a custom widget, but the cursor during the drag operation is the normal cursor with a simple dotted box in the drop area. I'd like to set the image to be displayed using the method as shown here.

DragSource dragSource = new DragSource(label, DND.DROP_MOVE|DND.DROP_COPY);
dragSource.setDragSourceEffect(new DragSourceEffect(label) {
	@Override
	public void dragStart(DragSourceEvent event) {
		event.image = image;
	}
});
Comment 1 Ivan Furnadjiev CLA 2015-07-09 10:49:59 EDT
*** Bug 472288 has been marked as a duplicate of this bug. ***