mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 23:25:26 +02:00
some old update that wasn't committed
This commit is contained in:
parent
ef8791b9f2
commit
3a99dfb5d8
1 changed files with 13 additions and 0 deletions
|
@ -27,6 +27,7 @@ import java.io.InputStream;
|
|||
import java.io.OutputStream;
|
||||
import java.net.URI;
|
||||
import java.net.URISyntaxException;
|
||||
import java.rmi.RemoteException;
|
||||
|
||||
import org.eclipse.core.filesystem.EFS;
|
||||
import org.eclipse.core.filesystem.IFileInfo;
|
||||
|
@ -50,6 +51,7 @@ import org.eclipse.rse.files.ui.resources.SystemEditableRemoteFile;
|
|||
import org.eclipse.rse.files.ui.resources.UniversalFileTransferUtility;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFile;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystem;
|
||||
import org.eclipse.rse.subsystems.files.core.subsystems.RemoteFileEmpty;
|
||||
import org.eclipse.rse.ui.ISystemPreferencesConstants;
|
||||
import org.eclipse.rse.ui.RSEUIPlugin;
|
||||
|
||||
|
@ -428,6 +430,17 @@ public class RSEFileStoreRemoteFileWrapper extends FileStore implements IFileSto
|
|||
file = UniversalFileTransferUtility.getTempFileFor(_remoteFile);
|
||||
return file.getLocation().toFile();
|
||||
}
|
||||
else if (_remoteFile instanceof RemoteFileEmpty)
|
||||
{
|
||||
try
|
||||
{
|
||||
return File.createTempFile(_remoteFile.getName(), "empty");
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue