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

TransferSupport should return a drop action, even when there is no drop

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 6
    • client-libs

      FULL PRODUCT VERSION :
      java version "1.6.0-rc-fastdebug"
      Java(TM) SE Runtime Environment (build 1.6.0-rc-fastdebug-b96)
      Java HotSpot(TM) Client VM (build 1.6.0-rc-fastdebug-b96-debug, mixed mode)

      A DESCRIPTION OF THE PROBLEM :
      It is possible to use a TransferHandler to transfer data using cut, copy and paste keypresses. These work by creating dummy drag and drop events that are sent via the transfer handler. Cut actions export data with a MOVE drop type, and copy actions export data with a COPY drop type.

      The new Transferhandler.importData() method accepts a TransferSupport which provides detailed information about a drop action. Unfortunatly, if the action was initiated by a cut or copy action, the drop type information is unobtainable. Any call to getDropAction() throws an exception. Since this data should be available, the TransferSupport should return this valuable information regarless of whether is this a true drop or one initiated through cut or copy.

      REGRESSION. Last worked in version mustang


      REPRODUCIBILITY :
      This bug can be reproduced always.

            shickeysunw Shannon Hickey (Inactive)
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: