use of com.cubrid.common.ui.er.commands.CreateColumnCommand in project cubrid-manager by CUBRID.
the class TableContainerEditPolicy method getCreateCommand.
@Override
protected Command getCreateCommand(CreateRequest request) {
Object newObject = request.getNewObject();
if (!(newObject instanceof ERTableColumn)) {
return null;
}
TablePart tablePart = (TablePart) getHost();
ERTable erTable = tablePart.getTable();
ERTableColumn column = (ERTableColumn) newObject;
CreateColumnCommand command = new CreateColumnCommand();
command.setTable(erTable);
command.setColumn(column);
return command;
}
Aggregations