OwnSyncStatus.setMessage("Executing " + allFileActions.size() + " synchronisation actions");
OwnSyncStatus.setMessage("---------------------------------------------------------");
long start = System.currentTimeMillis();
long actionStart = 0;
FileAction action;
try
{
for (int i = 0; i < allFileActions.size(); i++)
{
action = (FileAction) allFileActions.get(i);
OwnSyncStatus.setMessage(action.toString());
actionStart = System.currentTimeMillis();
if (!action.executeAction())
{
OwnSyncStatus.appendToMessage(" failed after "+DataFormatter.getTimeString(System.currentTimeMillis() - actionStart));
OwnSyncStatus.setMessage("ERROR Executing action " + action + " failed, please retry later");
action.incrementActionCount(result);
}
else
{
OwnSyncStatus.appendToMessage(" took "+DataFormatter.getTimeString(System.currentTimeMillis() - actionStart));
action.incrementActionCount(result);
}
}
}
catch (Exception e)
{