Search in sources :

Example 1 with ModifyTableNameCommand

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;
}
Also used : ModifyTableNameCommand(com.cubrid.common.ui.er.commands.ModifyTableNameCommand) CellEditor(org.eclipse.jface.viewers.CellEditor) ERTable(com.cubrid.common.ui.er.model.ERTable)

Aggregations

ModifyTableNameCommand (com.cubrid.common.ui.er.commands.ModifyTableNameCommand)1 ERTable (com.cubrid.common.ui.er.model.ERTable)1 CellEditor (org.eclipse.jface.viewers.CellEditor)1