1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-26 10:25:32 +02:00

[180671] update to original patch by Xuan

This commit is contained in:
David McKnight 2007-06-05 11:49:04 +00:00
parent 0d0ee5ddf5
commit 6ffbfb9782

View file

@ -2835,6 +2835,10 @@ public class SystemViewRemoteFileAdapter
boolean isFileCached = isFileCached(editable, remoteFile); boolean isFileCached = isFileCached(editable, remoteFile);
if (isFileCached) if (isFileCached)
{ {
if (openedInSamePerspective)
{
editable.setLocalResourceProperties();
}
editable.openEditor(); editable.openEditor();
} }
else else
@ -2842,10 +2846,6 @@ public class SystemViewRemoteFileAdapter
DownloadJob oJob = new DownloadJob(editable, false); DownloadJob oJob = new DownloadJob(editable, false);
oJob.schedule(); oJob.schedule();
} }
if (openedInSamePerspective && isFileCached)
{
editable.setLocalResourceProperties();
}
} }
catch (Exception e) catch (Exception e)