use of com.cubrid.common.ui.spi.progress.LoadTableDetailInfoTask in project cubrid-manager by CUBRID.
the class ColumnViewerSorter method refresh.
/**
* Refresh the data
*
* @param name
*/
private void refresh(String name) {
final LoadTableDetailInfoTask loadTableDetailInfoTask = new LoadTableDetailInfoTask(Messages.tablesDetailInfoLoadingDataTitle, database, name);
CommonTaskExec taskExec = new CommonTaskExec(Messages.bind(Messages.tablesDetailInfoLoadingData, name));
taskExec.addTask(loadTableDetailInfoTask);
new ExecTaskWithProgress(taskExec).busyCursorWhile();
if (taskExec.isSuccess()) {
TableDetailInfo tableInfo = loadTableDetailInfoTask.getTableInfo();
if (tableInfo != null) {
TableDetailInfo oldTableInfo = findTableInfo(name);
if (oldTableInfo != null) {
TableDetailInfo.copyAllAttribute(tableInfo, oldTableInfo);
tableListView.refresh();
} else {
tableList.add(tableInfo);
tableListView.refresh();
}
}
}
}
Aggregations