Search in sources :

Example 1 with CreateColumnCommand

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;
}
Also used : ERTableColumn(com.cubrid.common.ui.er.model.ERTableColumn) TablePart(com.cubrid.common.ui.er.part.TablePart) ERTable(com.cubrid.common.ui.er.model.ERTable) CreateColumnCommand(com.cubrid.common.ui.er.commands.CreateColumnCommand)

Aggregations

CreateColumnCommand (com.cubrid.common.ui.er.commands.CreateColumnCommand)1 ERTable (com.cubrid.common.ui.er.model.ERTable)1 ERTableColumn (com.cubrid.common.ui.er.model.ERTableColumn)1 TablePart (com.cubrid.common.ui.er.part.TablePart)1