1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 07:05:24 +02:00

[324192] Cannot open a renamed file

This commit is contained in:
David McKnight 2010-09-01 16:11:52 +00:00
parent 843372ee75
commit 65c37fa291

View file

@ -68,6 +68,7 @@
* David McKnight (IBM) - [308221] Bidi3.6: Improper display of date in Properties and Table Views
* David McKnight (IBM) - [317541] Show blank as the last modified for a file with no last modified
* David McKnight (IBM) - [323299] [files] remote file view adapter needs to use the latest version of IRemoteFile
* David McKnight (IBM) - [324192] Cannot open a renamed file
*******************************************************************************/
package org.eclipse.rse.internal.files.ui.view;
@ -2949,13 +2950,12 @@ public class SystemViewRemoteFileAdapter
if (editableObj != null)
{
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
IRemoteFile newRemoteFile = ss.getRemoteFileObject(remotePath, new NullProgressMonitor());
editable.setRemoteFile(newRemoteFile);
}
// change the remote file regardless of whether it's open in an editor or not
// there's an in-memory editable, so change the associated remote file
IRemoteFile newRemoteFile = ss.getRemoteFileObject(remotePath, new NullProgressMonitor());
editable.setRemoteFile(newRemoteFile);
}
}
catch (Exception e)