// No point to ordering less than 2 tables
return tables;
}
final SQLDatabaseMetaData md = _session.getSQLConnection().getSQLMetaData();
ProgressCallBack getOrderedTablesCallBack =
progressCallBackFactory.create(customDialog, i18n.PROGRESS_DIALOG_ANALYZE_TITLE, tables.size());
getOrderedTablesCallBack.setLoadingPrefix(i18n.LOADING_PREFIX);
// Now, get the drop order (same as delete) and update the dialog
// status while doing so.
final List<ITableInfo> result = SQLUtilities.getDeletionOrder(tables, md, getOrderedTablesCallBack);
getOrderedTablesCallBack.setVisible(false);
getOrderedTablesCallBack = null;
return result;
}