mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-14 04:25:21 +02:00
[234924] [ftp][dnd][Refresh] Copy/Paste file from Package Explorer doesn't refresh folder
This commit is contained in:
parent
4aeb1af3c7
commit
359627faa0
1 changed files with 6 additions and 4 deletions
|
@ -102,6 +102,7 @@ import org.eclipse.rse.services.clientserver.messages.ICommonMessageIds;
|
||||||
import org.eclipse.rse.services.clientserver.messages.SimpleSystemMessage;
|
import org.eclipse.rse.services.clientserver.messages.SimpleSystemMessage;
|
||||||
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
import org.eclipse.rse.services.clientserver.messages.SystemMessage;
|
||||||
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
|
import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
|
||||||
|
import org.eclipse.rse.services.clientserver.messages.SystemUnsupportedOperationException;
|
||||||
import org.eclipse.rse.services.files.IFileService;
|
import org.eclipse.rse.services.files.IFileService;
|
||||||
import org.eclipse.rse.services.files.RemoteFileIOException;
|
import org.eclipse.rse.services.files.RemoteFileIOException;
|
||||||
import org.eclipse.rse.services.files.RemoteFileSecurityException;
|
import org.eclipse.rse.services.files.RemoteFileSecurityException;
|
||||||
|
@ -1589,9 +1590,10 @@ public class UniversalFileTransferUtility
|
||||||
{
|
{
|
||||||
SystemIFileProperties properties = new SystemIFileProperties(srcFileOrFolder);
|
SystemIFileProperties properties = new SystemIFileProperties(srcFileOrFolder);
|
||||||
try {
|
try {
|
||||||
((FileServiceSubSystem)targetFS).getFileService().setLastModified(newPathBuf.toString(), name, properties.getRemoteFileTimeStamp(), monitor);
|
IRemoteFile newFile = targetFS.getRemoteFileObject(newPath, monitor);
|
||||||
|
targetFS.setLastModified(newFile, properties.getRemoteFileTimeStamp(), monitor);
|
||||||
}
|
}
|
||||||
catch (SystemMessageException e){
|
catch (SystemUnsupportedOperationException e){
|
||||||
// service doesn't support setLastModified
|
// service doesn't support setLastModified
|
||||||
SystemBasePlugin.logError("Unable to set last modified", e); //$NON-NLS-1$
|
SystemBasePlugin.logError("Unable to set last modified", e); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
@ -1843,7 +1845,7 @@ public class UniversalFileTransferUtility
|
||||||
try {
|
try {
|
||||||
targetFS.setLastModified(copiedFile, timestamp, monitor);
|
targetFS.setLastModified(copiedFile, timestamp, monitor);
|
||||||
}
|
}
|
||||||
catch (SystemMessageException e){
|
catch (SystemUnsupportedOperationException e){
|
||||||
// service doesn't support setLastModified
|
// service doesn't support setLastModified
|
||||||
SystemBasePlugin.logError("Unable to set last modified", e); //$NON-NLS-1$
|
SystemBasePlugin.logError("Unable to set last modified", e); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
@ -2083,7 +2085,7 @@ public class UniversalFileTransferUtility
|
||||||
try {
|
try {
|
||||||
target.getParentRemoteFileSubSystem().setLastModified(target, properties.getRemoteFileTimeStamp(), monitor);
|
target.getParentRemoteFileSubSystem().setLastModified(target, properties.getRemoteFileTimeStamp(), monitor);
|
||||||
}
|
}
|
||||||
catch (SystemMessageException e){
|
catch (SystemUnsupportedOperationException e){
|
||||||
// service doesn't support setLastModified
|
// service doesn't support setLastModified
|
||||||
SystemBasePlugin.logError("Unable to set last modified", e); //$NON-NLS-1$
|
SystemBasePlugin.logError("Unable to set last modified", e); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue