mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-14 12:35:22 +02:00
[280466] File download keeps running in case sensitive case
This commit is contained in:
parent
1ad19aa557
commit
e45b651ccf
1 changed files with 12 additions and 30 deletions
|
@ -63,6 +63,7 @@
|
||||||
* David McKnight (IBM) - [264607] Unable to delete a broken symlink
|
* David McKnight (IBM) - [264607] Unable to delete a broken symlink
|
||||||
* David McKnight (IBM) - [276103] Files with names in different cases are not handled properly
|
* David McKnight (IBM) - [276103] Files with names in different cases are not handled properly
|
||||||
* David McKnight (IBM) - [276534] Cache Conflict After Synchronization when Browsing Remote System with Case-Differentiated-Only Filenames
|
* David McKnight (IBM) - [276534] Cache Conflict After Synchronization when Browsing Remote System with Case-Differentiated-Only Filenames
|
||||||
|
* David McKnight (IBM) - [280466] File download keeps running in case sensitive case
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.internal.files.ui.view;
|
package org.eclipse.rse.internal.files.ui.view;
|
||||||
|
@ -2781,39 +2782,16 @@ public class SystemViewRemoteFileAdapter
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
tmp.delete(false, null);
|
tmp.delete(false, null);
|
||||||
|
|
||||||
|
// get rid of associated editable if there was one before
|
||||||
|
SystemIFileProperties properties = new SystemIFileProperties(tmp);
|
||||||
|
properties.setRemoteFileObject(null);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
ISystemEditableRemoteObject editable = getEditableRemoteObject(file);
|
|
||||||
if (editable != null)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
if (editable.checkOpenInEditor() == ISystemEditableRemoteObject.OPEN_IN_SAME_PERSPECTIVE)
|
|
||||||
{
|
|
||||||
// for now, leave this
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
IFile localfile = editable.getLocalResource();
|
|
||||||
if (localfile != null)
|
|
||||||
{
|
|
||||||
// delete this too
|
|
||||||
localfile.delete(true, null);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
ss.delete(file, monitor);
|
ss.delete(file, monitor);
|
||||||
ok = true;
|
ok = true;
|
||||||
file.markStale(true);
|
file.markStale(true);
|
||||||
|
@ -2941,11 +2919,15 @@ public class SystemViewRemoteFileAdapter
|
||||||
if (editableObj != null)
|
if (editableObj != null)
|
||||||
{
|
{
|
||||||
SystemEditableRemoteFile editable = (SystemEditableRemoteFile)editableObj;
|
SystemEditableRemoteFile editable = (SystemEditableRemoteFile)editableObj;
|
||||||
|
|
||||||
|
// is this open?
|
||||||
|
if (editable.checkOpenInEditor() != ISystemEditableRemoteObject.NOT_OPEN){
|
||||||
// there's an in-memory editable, so change the associated remote file
|
// there's an in-memory editable, so change the associated remote file
|
||||||
IRemoteFile newRemoteFile = ss.getRemoteFileObject(remotePath, new NullProgressMonitor());
|
IRemoteFile newRemoteFile = ss.getRemoteFileObject(remotePath, new NullProgressMonitor());
|
||||||
editable.setRemoteFile(newRemoteFile);
|
editable.setRemoteFile(newRemoteFile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue