1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-18 22:45:23 +02:00

Bug 357667 - RSE view cannot "paste" onto same element that was "copied" from

This commit is contained in:
Martin Oberhuber 2012-01-31 12:12:51 +00:00
parent bae5fac23f
commit 6030a38562

View file

@ -28,6 +28,7 @@
* Radoslav Gerganov (ProSyst) - [231428] [files] NPE on canceling copy operation from remote host * Radoslav Gerganov (ProSyst) - [231428] [files] NPE on canceling copy operation from remote host
* David McKnight (IBM) - [328148] Dropping resource onto Eclipse IFile causes RSEG1003U unexpected exception * David McKnight (IBM) - [328148] Dropping resource onto Eclipse IFile causes RSEG1003U unexpected exception
* David McKnight (IBM) - [231971] [dnd] Drag and Drop Filter Displays Error * David McKnight (IBM) - [231971] [dnd] Drag and Drop Filter Displays Error
* Martin Oberhuber (Wind River) - [357667] [dnd] Allow copy-onto-myself semantics
*******************************************************************************/ *******************************************************************************/
package org.eclipse.rse.internal.ui.view; package org.eclipse.rse.internal.ui.view;
@ -162,7 +163,7 @@ public class SystemDNDTransferRunnable extends WorkspaceJob
showErrorMessage((SystemMessage) srcObject); showErrorMessage((SystemMessage) srcObject);
return _ok; return _ok;
} }
else if (srcObject != null && srcObject != target) else if (srcObject != null)
{ {
ISystemDragDropAdapter srcAdapter = (ISystemDragDropAdapter) ((IAdaptable) srcObject).getAdapter(ISystemDragDropAdapter.class); ISystemDragDropAdapter srcAdapter = (ISystemDragDropAdapter) ((IAdaptable) srcObject).getAdapter(ISystemDragDropAdapter.class);