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;
}
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;
}
Aggregations