mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
don't expose copyRemoteFileToWorkspace() since it doesn't store timestamps directly
This commit is contained in:
parent
5e78e00e24
commit
477fb92d41
2 changed files with 4 additions and 4 deletions
|
@ -167,8 +167,8 @@ public class RSEFileStoreRemoteFileWrapper extends FileStore implements IFileSto
|
|||
}
|
||||
if (file == null || !file.exists())
|
||||
{
|
||||
file = UniversalFileTransferUtility.copyRemoteFileToWorkspace(_remoteFile, monitor);
|
||||
if (file != null)
|
||||
file = (IFile)UniversalFileTransferUtility.copyRemoteResourceToWorkspace(_remoteFile, monitor);
|
||||
if (file != null && !file.isSynchronized(IResource.DEPTH_ZERO))
|
||||
{
|
||||
file.getProject().refreshLocal(IResource.DEPTH_INFINITE, monitor);
|
||||
}
|
||||
|
@ -318,7 +318,7 @@ public class RSEFileStoreRemoteFileWrapper extends FileStore implements IFileSto
|
|||
|
||||
if (_remoteFile.isFile() && _subSystem.isConnected())
|
||||
{
|
||||
file = UniversalFileTransferUtility.copyRemoteFileToWorkspace(_remoteFile, monitor);
|
||||
file = (IResource)UniversalFileTransferUtility.copyRemoteResourceToWorkspace(_remoteFile, monitor);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -94,7 +94,7 @@ public class UniversalFileTransferUtility
|
|||
* @param shell
|
||||
* @return the resulting local replica
|
||||
*/
|
||||
public static IFile copyRemoteFileToWorkspace(IRemoteFile srcFileOrFolder, IProgressMonitor monitor)
|
||||
protected static IFile copyRemoteFileToWorkspace(IRemoteFile srcFileOrFolder, IProgressMonitor monitor)
|
||||
{
|
||||
IRemoteFileSubSystem srcFS = srcFileOrFolder.getParentRemoteFileSubSystem();
|
||||
IResource tempResource = getTempFileFor(srcFileOrFolder);
|
||||
|
|
Loading…
Add table
Reference in a new issue