mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +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:
parent
17a5fa88b8
commit
69d1d276dc
2 changed files with 6 additions and 3 deletions
|
@ -706,7 +706,9 @@ public abstract class SystemTempFileListener implements IResourceChangeListener
|
||||||
// instead, defer synchronization to later but allow user to edit
|
// instead, defer synchronization to later but allow user to edit
|
||||||
// set the dirty flag to indicate that this file needs resynchronization
|
// set the dirty flag to indicate that this file needs resynchronization
|
||||||
properties.setDirty(true);
|
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);
|
doResourceSynchronization(fs, file, uploadPath, monitor);
|
||||||
|
|
|
@ -138,8 +138,9 @@ public class SystemUniversalTempFileListener extends SystemTempFileListener
|
||||||
// first we need to get the stored timestamp property and the actual remote timestamp
|
// first we need to get the stored timestamp property and the actual remote timestamp
|
||||||
SystemIFileProperties properties = new SystemIFileProperties(tempFile);
|
SystemIFileProperties properties = new SystemIFileProperties(tempFile);
|
||||||
|
|
||||||
// make sure we're working online - not offline
|
// make sure we're working online
|
||||||
if (fs.isOffline())
|
// 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
|
// offline mode - make sure the file stays dirty
|
||||||
properties.setDirty(true);
|
properties.setDirty(true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue