Community
Participate
Working Groups
// 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
// 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
properties.setDirty(true);
// instead, defer synchronization to later but allow user to edit
// set the dirty flag to indicate that this file needs resynchronization
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);