Search in sources :

Example 1 with RenameTableColumnTask

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();
    }
}
Also used : CommonTaskExec(com.cubrid.common.ui.spi.progress.CommonTaskExec) TaskExecutor(com.cubrid.common.ui.spi.progress.TaskExecutor) ExecTaskWithProgress(com.cubrid.common.ui.spi.progress.ExecTaskWithProgress) RenameTableColumnTask(com.cubrid.cubridmanager.core.cubrid.table.task.RenameTableColumnTask)

Aggregations

CommonTaskExec (com.cubrid.common.ui.spi.progress.CommonTaskExec)1 ExecTaskWithProgress (com.cubrid.common.ui.spi.progress.ExecTaskWithProgress)1 TaskExecutor (com.cubrid.common.ui.spi.progress.TaskExecutor)1 RenameTableColumnTask (com.cubrid.cubridmanager.core.cubrid.table.task.RenameTableColumnTask)1