Bug 325977 - Browser - support for DND
Summary: Browser - support for DND
Status: CLOSED DUPLICATE of bug 192612
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-22 11:19 EDT by Vladimir Stevanovic CLA
Modified: 2011-05-20 16:29 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***