Bug 129749 - [DND] Drag n' drop links from external browser
Summary: [DND] Drag n' drop links from external browser
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2006-02-28 05:30 EST by Andre N. Klingsheim CLA
Modified: 2019-11-17 19:37 EST (History)
4 users (show)

See Also:


Attachments
Snippet illustrating the DND behaviour (6.28 KB, text/plain)
2006-02-28 05:34 EST, Andre N. Klingsheim CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andre N. Klingsheim CLA 2006-02-28 05:30:47 EST
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.
Comment 1 Andre N. Klingsheim CLA 2006-02-28 05:34:22 EST
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.
Comment 2 Benjamin Pasero CLA 2006-02-28 05:49:42 EST
See also Bug 100095.

Ben
Comment 3 Andre N. Klingsheim CLA 2006-03-03 12:10:10 EST
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. 
Comment 4 Eric Williams CLA 2017-07-28 10:23:45 EDT
Patches are welcome.
Comment 5 Eclipse Genie CLA 2019-11-17 19:37:28 EST
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.