Search in sources :

Example 1 with ReconnectPrimaryKeyCommand

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

the class TableNodeEditPolicy method getReconnectTargetCommand.

/**
	 * @see GraphicalNodeEditPolicy#getReconnectTargetCommand(ReconnectRequest)
	 */
@Override
protected Command getReconnectTargetCommand(ReconnectRequest request) {
    ReconnectPrimaryKeyCommand cmd = new ReconnectPrimaryKeyCommand();
    cmd.setRelationship((Relationship) request.getConnectionEditPart().getModel());
    TablePart tablePart = (TablePart) getHost();
    cmd.setTargetPrimaryKey(tablePart.getTable());
    return cmd;
}
Also used : ReconnectPrimaryKeyCommand(com.cubrid.common.ui.er.commands.ReconnectPrimaryKeyCommand) TablePart(com.cubrid.common.ui.er.part.TablePart)

Aggregations

ReconnectPrimaryKeyCommand (com.cubrid.common.ui.er.commands.ReconnectPrimaryKeyCommand)1 TablePart (com.cubrid.common.ui.er.part.TablePart)1