Community
Participate
Working Groups
I would like to drag links from my Opera browser, and drop them in my SWT application. This works when I use Firefox, I then get a HTMLTransfer, with a link that I can parse. When dragging the link from Opera, I get a FileTransfer, but the data is null. This is tested with links shown as images (e.g. the eclipse icon linking to eclipse.org, from your site eclipse.org/swt) I have tested this on several platforms: OSX: I get a TextTransfer with correct link. Tested with Safari, Firefox and Opera. Consistent behaviour! :) Win32: With explorer I get the stop sign, indicating that I cannot drop the link in my SWT application. With Firefox and Opera, I get a FileTransfer, with the path to the cached Image file. Linux gtk: I get a HTMLTransfer from Firefox, containing the full <a href> tag. From opera I get a FileTransfer, but the data is null. I tested this with the latest SWT release, 3.2 M5. The same issues apply. I'm running CentOS 4 and Fedora Core 4. Thanks in advance.
Created attachment 35463 [details] Snippet illustrating the DND behaviour The snippet outputs info to System.err when something is dropped in the textarea. Things should be dropped in the first textarea. To see my problem, go to eclipse.org/swt. Drag the link to eclipse.org (the image on the left) to the textarea.
See also Bug 100095. Ben
By the way. When dropping links from Opera to the lower textarea, the link target is shown correctly in the textarea. So it works! But not when handling the drag n' drop manually.
Patches are welcome.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.