1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 23:55:26 +02:00

[209899] fix: system view did not refresh properly if rename multiple folders in table view.

This commit is contained in:
Xuan Chen 2007-11-15 05:41:07 +00:00
parent 0d55051669
commit 782ffc5d8f

View file

@ -39,6 +39,7 @@
* Rupen Mardirossian (IBM) - [208435] added constructor to nested RenameRunnable class to take in names that are previously used as a parameter for multiple renaming instances
* David McKnight (IBM) - [209660] need to check if remote encoding has changed before using cached file
* Xuan Chen (IBM) - [160775] [api] [breaking] [nl] rename (at least within a zip) blocks UI thread
* Xuan Chen (IBM) - [209899] system view did not refresh properly if rename multiple folders in table view.
********************************************************************************/
package org.eclipse.rse.internal.files.ui.view;
@ -2881,7 +2882,9 @@ public class SystemViewRemoteFileAdapter
RemoteFile oldFile = (RemoteFile)oldElement;
RemoteFile newFile = (RemoteFile)newElement;
if ((oldFile != newFile) && (oldFile.isFile()) && (newFile.isFile())) {
if ( (oldFile != newFile)
&& ( (oldFile.isFile() && newFile.isFile())
|| (oldFile.isDirectory() && newFile.isDirectory()) )) {
oldFile.getHostFile().renameTo(newFile.getAbsolutePath());
}