use of com.cubrid.cubridmanager.core.cubrid.table.task.RenameTableColumnTask in project cubrid-manager by CUBRID.
the class RenameColumnDialog method okPressed.
/**
* Save the new text.
*/
protected void okPressed() {
newName = newText.getText().trim();
TaskExecutor taskExec = new CommonTaskExec(Messages.bind(Messages.renameShellTitle, tableName, column));
RenameTableColumnTask task = new RenameTableColumnTask(database.getDatabaseInfo());
task.setTableName(tableName);
task.setNewName(newName);
task.setOldName(column);
taskExec.addTask(task);
new ExecTaskWithProgress(taskExec).busyCursorWhile();
if (taskExec.isSuccess()) {
super.okPressed();
}
}
Aggregations