Search in sources :

Example 1 with AssociationReconnectTargetCommand

use of org.jkiss.dbeaver.erd.ui.command.AssociationReconnectTargetCommand in project dbeaver by dbeaver.

the class EntityConnectionEditPolicy method getReconnectTargetCommand.

@Override
protected Command getReconnectTargetCommand(ReconnectRequest request) {
    AssociationReconnectTargetCommand cmd = makeReconnectTargetCommand();
    cmd.setRelationship((ERDAssociation) request.getConnectionEditPart().getModel());
    NodePart entityPart = (NodePart) getHost();
    cmd.setTargetEntity(entityPart.getElement());
    return cmd;
}
Also used : AssociationReconnectTargetCommand(org.jkiss.dbeaver.erd.ui.command.AssociationReconnectTargetCommand) NodePart(org.jkiss.dbeaver.erd.ui.part.NodePart)

Example 2 with AssociationReconnectTargetCommand

use of org.jkiss.dbeaver.erd.ui.command.AssociationReconnectTargetCommand in project dbeaver by serge-rider.

the class EntityConnectionEditPolicy method getReconnectTargetCommand.

@Override
protected Command getReconnectTargetCommand(ReconnectRequest request) {
    AssociationReconnectTargetCommand cmd = makeReconnectTargetCommand();
    cmd.setRelationship((ERDAssociation) request.getConnectionEditPart().getModel());
    NodePart entityPart = (NodePart) getHost();
    cmd.setTargetEntity(entityPart.getElement());
    return cmd;
}
Also used : AssociationReconnectTargetCommand(org.jkiss.dbeaver.erd.ui.command.AssociationReconnectTargetCommand) NodePart(org.jkiss.dbeaver.erd.ui.part.NodePart)

Aggregations

AssociationReconnectTargetCommand (org.jkiss.dbeaver.erd.ui.command.AssociationReconnectTargetCommand)2 NodePart (org.jkiss.dbeaver.erd.ui.part.NodePart)2