use of com.cubrid.common.ui.er.commands.ModifyTableNameCommand in project cubrid-manager by CUBRID.
the class TableDirectEditPolicy method getDirectEditCommand.
@Override
protected Command getDirectEditCommand(DirectEditRequest request) {
ModifyTableNameCommand cmd = new ModifyTableNameCommand();
ERTable erTable = (ERTable) getHost().getModel();
cmd.setTable(erTable);
cmd.setOldName(erTable.getShownName());
CellEditor cellEditor = request.getCellEditor();
String value = (String) cellEditor.getValue();
cmd.setName(value);
return cmd;
}
Aggregations