JDK-6350709 : System Clipboard response for Cut and Paste operations
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-11-15
  • Updated: 2011-01-19
Related Reports
Relates :  
Description
A DESCRIPTION OF THE REQUEST :
To successfuly Cut and Paste a file list requires feedback from the destiation application that  the Paste operation has been successful or not.  The functionality to recieve and / or return the success  and  failure of a Paste operation does not currently exist.


JUSTIFICATION :
Cut and Paste operations can not be fully supported.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Once the transferable object has been exported / passed to the system clipboard, for a cut operation.  The TransferHandler needs to be notified of three possibilities that would complete the Cut operation.

1. Another cut or copy has been made, replacing the contents of the system Clipboard and ending the cut with a failure.
2. A paste operation is attemped, but fails, ending the cut operation with a failure.
3. A paste operation completes successfully, ending the cut operation with a success.

There also needs to be a way to notify the source of a cut operation of the success or failure of a paste operation.


ACTUAL -
Currently the the cut transaction is completed by the exportDone() method in the Transfer handler as soon as the transferable object is passed to the clipboard.

Comments
EVALUATION We'll be able to implement API for such functionality on Windows only after we reimplement our clipboard machinery using OLE mechanism (see 5078787).
16-11-2005