United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6344471 : Restore TransferHandler.TransferInfo.getDropAction()

Details
Type:
Bug
Submit Date:
2005-11-01
Status:
Resolved
Updated Date:
2010-05-11
Project Name:
JDK
Resolved Date:
2005-11-30
Component:
client-libs
OS:
generic,windows_2000
Sub-Component:
javax.swing
CPU:
x86,generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports

Sub Tasks

Description
4942851 added a getDropAction() method as part of TransferHandler.TransferInfo. This method has subsequently been removed as part of another fix. This was a mistake and it should be re-added.

                                    

Comments
EVALUATION

getDropAction() was removed since it was thought that it may prevent future attempts at allowing the developer to choose a drop action. By reflecting on how future API may look, we've realized this is not the case. It can therefore be put back into the code.

Also, now that this is fixed, we can solve a problem I've discovered with text DnD. The problem is that when dragging from and to the same text component, nothing happens when dropping into the area of text that was selected for the drag. This is correct for moves, but the wrong thing for copies. This can now be remedied.
                                     
2005-11-01



Hardware and Software, Engineered to Work Together