* {@inheritDoc}
*/
public void backgroundTaskCompleted(Set<BackupInfo> returnValue,
Throwable t)
{
BackupTableModel model = (BackupTableModel)backupList.getModel();
model.clear();
renderer.setParentPath(new File(parentPath));
if (t == null)
{
if (returnValue.size() > 0)
{
for (BackupInfo backup : returnValue)
{
model.add(new BackupDescriptor(backup));
}
model.fireTableDataChanged();
Utilities.updateTableSizes(backupList);
tableScroll.setVisible(true);
lRefreshingList.setVisible(false);
}
else
{
model.fireTableDataChanged();
lRefreshingList.setText(NO_BACKUPS_FOUND.toString());
lRefreshingList.setVisible(isLocal());
}
errorPane.setVisible(false);
// This is done to perform checks against whether we require to
// display an error message or not.
configurationChanged(new ConfigurationChangeEvent(null,
getInfo().getServerDescriptor()));
}
else
{
model.fireTableDataChanged();
boolean displayError = true;
if (t instanceof OpenDsException)
{
OpenDsException e = (OpenDsException)t;
if (e.getMessageObject().getDescriptor().equals(