use of com.cubrid.cubridmanager.core.cubrid.table.task.CreateLikeTableTask in project cubrid-manager by CUBRID.
the class CreateLikeTableDialog method createTable.
/**
*
* Execute task to create table
*
*/
private void createTable() {
newTableName = newTableNameText.getText();
String taskName = Messages.bind(Messages.createLikeTableTaskName, newTableName);
TaskExecutor executor = new CommonTaskExec(taskName);
CreateLikeTableTask task = new CreateLikeTableTask(getDatabase().getDatabaseInfo());
likeTableName = likeTableNameText.getText();
task.setTableName(newTableName);
task.setLikeTableName(likeTableName);
executor.addTask(task);
new ExecTaskWithProgress(executor).exec();
if (task.isSuccess()) {
super.buttonPressed(IDialogConstants.OK_ID);
}
}
Aggregations