mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-22 15:53:58 +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())
|
if (file == null || !file.exists())
|
||||||
{
|
{
|
||||||
file = UniversalFileTransferUtility.copyRemoteFileToWorkspace(_remoteFile, monitor);
|
file = (IFile)UniversalFileTransferUtility.copyRemoteResourceToWorkspace(_remoteFile, monitor);
|
||||||
if (file != null)
|
if (file != null && !file.isSynchronized(IResource.DEPTH_ZERO))
|
||||||
{
|
{
|
||||||
file.getProject().refreshLocal(IResource.DEPTH_INFINITE, monitor);
|
file.getProject().refreshLocal(IResource.DEPTH_INFINITE, monitor);
|
||||||
}
|
}
|
||||||
|
@ -318,7 +318,7 @@ public class RSEFileStoreRemoteFileWrapper extends FileStore implements IFileSto
|
||||||
|
|
||||||
if (_remoteFile.isFile() && _subSystem.isConnected())
|
if (_remoteFile.isFile() && _subSystem.isConnected())
|
||||||
{
|
{
|
||||||
file = UniversalFileTransferUtility.copyRemoteFileToWorkspace(_remoteFile, monitor);
|
file = (IResource)UniversalFileTransferUtility.copyRemoteResourceToWorkspace(_remoteFile, monitor);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
@ -94,7 +94,7 @@ public class UniversalFileTransferUtility
|
||||||
* @param shell
|
* @param shell
|
||||||
* @return the resulting local replica
|
* @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();
|
IRemoteFileSubSystem srcFS = srcFileOrFolder.getParentRemoteFileSubSystem();
|
||||||
IResource tempResource = getTempFileFor(srcFileOrFolder);
|
IResource tempResource = getTempFileFor(srcFileOrFolder);
|
||||||
|
|
Loading…
Add table
Reference in a new issue