Search in sources :

Example 1 with ModifyColumnLabelCommand

use of com.cubrid.common.ui.er.commands.ModifyColumnLabelCommand in project cubrid-manager by CUBRID.

the class ColumnDirectEditPolicy method getDirectEditCommand.

@Override
protected Command getDirectEditCommand(DirectEditRequest request) {
    ERTableColumn column = (ERTableColumn) getHost().getModel();
    ModifyColumnLabelCommand cmd = new ModifyColumnLabelCommand(column);
    CellEditor cellEditor = request.getCellEditor();
    cmd.changeNameType((String) cellEditor.getValue());
    return cmd;
}
Also used : CellEditor(org.eclipse.jface.viewers.CellEditor) ERTableColumn(com.cubrid.common.ui.er.model.ERTableColumn) ModifyColumnLabelCommand(com.cubrid.common.ui.er.commands.ModifyColumnLabelCommand)

Aggregations

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