mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 06:45:43 +02:00
[228587] [dnd] NPE From Refresh on Copy/Paste
This commit is contained in:
parent
16fda81be6
commit
7930ea7a1d
1 changed files with 10 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
|||
* David McKnight (IBM) - [186363] get rid of obsolete calls to SubSystem.connect()
|
||||
* Xuan Chen (IBM) - [191370] [dstore] Supertransfer zip not deleted when cancelling copy
|
||||
* David McKnight (IBM) - [224313] [api] Create RSE Events for MOVE and COPY holding both source and destination fields
|
||||
* David McKnight (IBM) - [228587] [dnd] NPE From Refresh on Copy/Paste
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.rse.internal.ui.view;
|
||||
|
@ -662,8 +663,16 @@ public class SystemDNDTransferRunnable extends WorkspaceJob
|
|||
doRefresh = true;
|
||||
}
|
||||
ISystemViewElementAdapter adapter = (ISystemViewElementAdapter)((IAdaptable)src).getAdapter(ISystemViewElementAdapter.class);
|
||||
if (adapter != null){
|
||||
oldNames[t] = adapter.getAbsoluteName(src);
|
||||
}
|
||||
else if (src instanceof IResource){ // could be an eclipse resource
|
||||
oldNames[t] = ((IResource)src).getFullPath().toOSString();
|
||||
}
|
||||
else {
|
||||
oldNames[t] = ""; // source resource unknown //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
if (_originatingViewer instanceof TreeViewer)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue