Search in sources :

Example 6 with AssociationCreateCommand

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

the class EntityConnectionEditPolicy method getConnectionCreateCommand.

@Override
protected Command getConnectionCreateCommand(CreateConnectionRequest request) {
    AssociationCreateCommand cmd = makeCreateCommand();
    NodePart part = (NodePart) getHost();
    cmd.setSourceEntity(part.getElement());
    request.setStartCommand(cmd);
    return cmd;
}
Also used : AssociationCreateCommand(org.jkiss.dbeaver.erd.ui.command.AssociationCreateCommand) NodePart(org.jkiss.dbeaver.erd.ui.part.NodePart)

Aggregations

AssociationCreateCommand (org.jkiss.dbeaver.erd.ui.command.AssociationCreateCommand)6 NodePart (org.jkiss.dbeaver.erd.ui.part.NodePart)4 List (java.util.List)2 AttributePart (org.jkiss.dbeaver.erd.ui.part.AttributePart)2