Search in sources :

Example 1 with RelationCreateCommand

use of org.talend.sqlbuilder.erdiagram.ui.commands.RelationCreateCommand in project tdi-studio-se by Talend.

the class ColumnGraphicalEditPolicy method getConnectionCreateCommand.

@Override
protected Command getConnectionCreateCommand(CreateConnectionRequest request) {
    Column source = (Column) getHost().getModel();
    RelationCreateCommand command = new RelationCreateCommand(source);
    request.setStartCommand(command);
    return command;
}
Also used : Column(org.talend.sqlbuilder.erdiagram.ui.nodes.Column) RelationCreateCommand(org.talend.sqlbuilder.erdiagram.ui.commands.RelationCreateCommand)

Example 2 with RelationCreateCommand

use of org.talend.sqlbuilder.erdiagram.ui.commands.RelationCreateCommand in project tdi-studio-se by Talend.

the class ColumnGraphicalEditPolicy method getConnectionCompleteCommand.

@Override
protected Command getConnectionCompleteCommand(CreateConnectionRequest request) {
    RelationCreateCommand cmd = (RelationCreateCommand) request.getStartCommand();
    cmd.setTarget((Column) getHost().getModel());
    return cmd;
}
Also used : RelationCreateCommand(org.talend.sqlbuilder.erdiagram.ui.commands.RelationCreateCommand)

Aggregations

RelationCreateCommand (org.talend.sqlbuilder.erdiagram.ui.commands.RelationCreateCommand)2 Column (org.talend.sqlbuilder.erdiagram.ui.nodes.Column)1