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

Bug 325977

Summary: Browser - support for DND
Product: [Eclipse Project] Platform Reporter: Vladimir Stevanovic <vstevanovic>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: grant_gayed, vstevanovic
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Vladimir Stevanovic CLA 2010-09-22 11:19:52 EDT
Browser widget does not support SWT drag and drop mechanism. Only native implementation registers dropping and it can not be overridden. This is the code I've used to capture drop event, but it looks like it is not generated:

final Browser browser = new Browser(getShell(), SWT.MOZILLA);
int operations = DND.DROP_DEFAULT | DND.DROP_MOVE | DND.DROP_COPY;
DropTarget dt = new DropTarget(browser, operations);
Transfer[] types = new Transfer[] { FileTransfer.getInstance() };
dt.setTransfer(types);
dt.addDropListener(new DropTargetListener() {
//.. all functions from this interface are implemented, and none is executed
}
Comment 1 Grant Gayed CLA 2011-05-20 16:29:00 EDT

*** This bug has been marked as a duplicate of bug 192612 ***