Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5029432

Provide a way of getting the action in TransferHandler.importData(...)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.2
    • client-libs



      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.


      JUSTIFICATION :
      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)
      ======================================================================

            shickeysunw Shannon Hickey (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: