use of com.cubrid.common.ui.er.commands.ReconnectForeignKeyCommand in project cubrid-manager by CUBRID.
the class TableNodeEditPolicy method getReconnectSourceCommand.
/**
* @see GraphicalNodeEditPolicy#getReconnectSourceCommand(ReconnectRequest)
*/
@Override
protected Command getReconnectSourceCommand(ReconnectRequest request) {
ReconnectForeignKeyCommand cmd = new ReconnectForeignKeyCommand();
cmd.setRelationship((Relationship) request.getConnectionEditPart().getModel());
TablePart tablePart = (TablePart) getHost();
cmd.setSourceForeignKey(tablePart.getTable());
return cmd;
}
Aggregations