List<DBSchema> schemas = getSchemas();
for (int i=0; i<schemas.size(); i++) {
DBSchema schema = schemas.get(i);
progressIndicator.setText("Updating object status in schema " + schema.getName() + "... ");
progressIndicator.setFraction(CommonUtil.getProgressPercentage(i, schemas.size()));
schema.refreshObjectsStatus();
}
}
}.start();
}