Search in sources :

Example 1 with AssociationReconnectSourceCommand

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;
}
Also used : AssociationReconnectSourceCommand(org.jkiss.dbeaver.ext.erd.command.AssociationReconnectSourceCommand) EntityPart(org.jkiss.dbeaver.ext.erd.part.EntityPart)

Aggregations

AssociationReconnectSourceCommand (org.jkiss.dbeaver.ext.erd.command.AssociationReconnectSourceCommand)1 EntityPart (org.jkiss.dbeaver.ext.erd.part.EntityPart)1