use of org.jkiss.dbeaver.ext.erd.command.AssociationReconnectSourceCommand in project dbeaver by serge-rider.
the class EntityNodeEditPolicy method getReconnectSourceCommand.
/**
* @see GraphicalNodeEditPolicy#getReconnectSourceCommand(ReconnectRequest)
*/
@Override
protected Command getReconnectSourceCommand(ReconnectRequest request) {
AssociationReconnectSourceCommand cmd = new AssociationReconnectSourceCommand();
cmd.setRelationship((ERDAssociation) request.getConnectionEditPart().getModel());
EntityPart entityPart = (EntityPart) getHost();
cmd.setSourceForeignKey(entityPart.getTable());
return cmd;
}
Aggregations