Lines 161-167
Link Here
|
161 |
ExplorerDnDManager.getDefault().setMaybeExternalDragAndDrop( true ); |
161 |
ExplorerDnDManager.getDefault().setMaybeExternalDragAndDrop( true ); |
162 |
|
162 |
|
163 |
int dropAction = dtde.getDropAction(); |
163 |
int dropAction = dtde.getDropAction(); |
164 |
int allowedDropActions = view.getAllowedDropActions(); |
164 |
int allowedDropActions = view.getAllowedDropActions(dtde.getTransferable()); |
165 |
dropAction = ExplorerDnDManager.getDefault().getAdjustedDropAction( |
165 |
dropAction = ExplorerDnDManager.getDefault().getAdjustedDropAction( |
166 |
dropAction, allowedDropActions); |
166 |
dropAction, allowedDropActions); |
167 |
|
167 |
|
Lines 385-396
Link Here
|
385 |
if( null == nodes ) |
385 |
if( null == nodes ) |
386 |
return; |
386 |
return; |
387 |
int dropAction = ExplorerDnDManager.getDefault().getAdjustedDropAction( |
387 |
int dropAction = ExplorerDnDManager.getDefault().getAdjustedDropAction( |
388 |
dtde.getDropAction(), view.getAllowedDropActions() |
388 |
dtde.getDropAction(), view.getAllowedDropActions(dtde.getTransferable()) |
389 |
); |
389 |
); |
390 |
|
390 |
|
391 |
for (int i = 0; i < nodes.length; i++) { |
391 |
for (int i = 0; i < nodes.length; i++) { |
392 |
if ( |
392 |
if ( |
393 |
((view.getAllowedDropActions() & dropAction) == 0) || |
393 |
((view.getAllowedDropActions(dtde.getTransferable()) & dropAction) == 0) || |
394 |
!DragDropUtilities.checkNodeForAction(nodes[i], dropAction) |
394 |
!DragDropUtilities.checkNodeForAction(nodes[i], dropAction) |
395 |
) { |
395 |
) { |
396 |
// this action is not supported |
396 |
// this action is not supported |
Lines 583-589
Link Here
|
583 |
} |
583 |
} |
584 |
|
584 |
|
585 |
// Test to see if the target node supports the drop action |
585 |
// Test to see if the target node supports the drop action |
586 |
if ((view.getAllowedDropActions() & dropAction) == 0) { |
586 |
if ((view.getAllowedDropActions(dndEventTransferable) & dropAction) == 0) { |
587 |
return false; |
587 |
return false; |
588 |
} |
588 |
} |
589 |
|
589 |
|
Lines 640-646
Link Here
|
640 |
|
640 |
|
641 |
Node[] dragNodes = ExplorerDnDManager.getDefault().getDraggedNodes(); |
641 |
Node[] dragNodes = ExplorerDnDManager.getDefault().getDraggedNodes(); |
642 |
int dropAction = ExplorerDnDManager.getDefault().getAdjustedDropAction( |
642 |
int dropAction = ExplorerDnDManager.getDefault().getAdjustedDropAction( |
643 |
dtde.getDropAction(), view.getAllowedDropActions() |
643 |
dtde.getDropAction(), view.getAllowedDropActions(dtde.getTransferable()) |
644 |
); |
644 |
); |
645 |
|
645 |
|
646 |
if (!canDrop(dropNode, dropAction, dtde.getTransferable())) { |
646 |
if (!canDrop(dropNode, dropAction, dtde.getTransferable())) { |