JDK-6356479 : Dragging "remote" files to external application (e.g. Explorer/Finder)
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-11-29
  • Updated: 2006-04-07
  • Resolved: 2005-12-01
Related Reports
Duplicate :  
Description
A DESCRIPTION OF THE REQUEST :
I have an application that displays a list of remote files (files to which I do not have the data locally represented). I would like to be able to drag items from this list to a native external application (such as the Windows Explorer, Macintosh Finder, etc).

JUSTIFICATION :
There is no way that I know of to transfer a temporary object (such as a javaFileListFlavor) where that list of files does not currently reside locally on the machine.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I set up a transferable where the flavor is a javaFileListFlavor. This is something the Explorer knows how to handle and allows for it. When the mouse is released a callback is made to notify me of the target (it would be nice to know if the target is a trash can/recycle bin) so I can download the files. From that point the drop can procede as usual once the data is prepared.
ACTUAL -
I can fake the drop to be a javaFileListFlavor but only empty files are written. I don't want to start preparing the files until the drop is done because the download can be time consuming. Plus, if the user drags to the system trash, I would like to know this to do a different behavior.

Comments
EVALUATION Duplicate of 4808793.
01-12-2005