Search in sources :

Example 1 with AssociationReconnectSourceCommand

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

the class EntityConnectionEditPolicy method getReconnectSourceCommand.

@Override
protected Command getReconnectSourceCommand(ReconnectRequest request) {
    AssociationReconnectSourceCommand cmd = makeReconnectSourceCommand();
    cmd.setAssociation((ERDAssociation) request.getConnectionEditPart().getModel());
    NodePart entityPart = (NodePart) getHost();
    cmd.setSourceEntity(entityPart.getElement());
    return cmd;
}
Also used : AssociationReconnectSourceCommand(org.jkiss.dbeaver.erd.ui.command.AssociationReconnectSourceCommand) NodePart(org.jkiss.dbeaver.erd.ui.part.NodePart)

Example 2 with AssociationReconnectSourceCommand

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

the class EntityConnectionEditPolicy method getReconnectSourceCommand.

@Override
protected Command getReconnectSourceCommand(ReconnectRequest request) {
    AssociationReconnectSourceCommand cmd = makeReconnectSourceCommand();
    cmd.setAssociation((ERDAssociation) request.getConnectionEditPart().getModel());
    NodePart entityPart = (NodePart) getHost();
    cmd.setSourceEntity(entityPart.getElement());
    return cmd;
}
Also used : AssociationReconnectSourceCommand(org.jkiss.dbeaver.erd.ui.command.AssociationReconnectSourceCommand) NodePart(org.jkiss.dbeaver.erd.ui.part.NodePart)

Aggregations

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