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

[256048] Saving a member open in Remote LPEX editor while Working Offline doesn't set the dirty property

This commit is contained in:
David McKnight 2008-11-25 15:11:28 +00:00
parent 17a5fa88b8
commit 69d1d276dc
2 changed files with 6 additions and 3 deletions

View file

@ -706,7 +706,9 @@ public abstract class SystemTempFileListener implements IResourceChangeListener
// instead, defer synchronization to later but allow user to edit
// set the dirty flag to indicate that this file needs resynchronization
properties.setDirty(true);
return;
// as per bug 256048 - comment#6 if we're not connected follow through to
// doResourceSynchronization so we have the change to mark the SystemTextEditor dirty
}
}
doResourceSynchronization(fs, file, uploadPath, monitor);

View file

@ -138,8 +138,9 @@ public class SystemUniversalTempFileListener extends SystemTempFileListener
// first we need to get the stored timestamp property and the actual remote timestamp
SystemIFileProperties properties = new SystemIFileProperties(tempFile);
// make sure we're working online - not offline
if (fs.isOffline())
// make sure we're working online
// also as per bug 256048 - comment#6 if we're not connected we still need to do the same thing
if (fs.isOffline() || !fs.isConnected())
{
// offline mode - make sure the file stays dirty
properties.setDirty(true);