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;
}
Aggregations