Name: rmT116609 Date: 04/08/2004
A DESCRIPTION OF THE REQUEST :
Provide a way of getting the action in TransferHandler.importData(...)
Preferably I would like to have the action also passed into the importData method. The old importData could be deprecated and have this one call the old one by default so that exisiting code will not be affected.
Another workable solution but not ideal would be to have a method on TransferHandler to get the action that can be called from within importData(...).
For copy and paste this would probably involve including the exported action within the Transferable placed on the clipboard such that the TransferHandler can retrieve it.
For drag and drop the information is already known in the drop(DropTargetDropEvent e) method that calls importData and so would just need to be passed in.
There are already many related changes getting made for Tiger, howver none of them allow me to find out this information.
Many of my components are just views of models stored somewhere else. When we do an import we need to know the action so that we can tell if we need to call a move or a copy in the backend. Without this information in order to do a move we would need to copy then delete the original which is relatively slow and in general the user wont be able to make duplicate data and hence the copy wouldn't be possible.
(Incident Review ID: 239016)