use of org.talend.sqlbuilder.erdiagram.ui.commands.RelationReconnectionCommand in project tdi-studio-se by Talend.
the class ColumnGraphicalEditPolicy method getReconnectTargetCommand.
@Override
protected Command getReconnectTargetCommand(ReconnectRequest request) {
Relation relation = (Relation) request.getConnectionEditPart().getModel();
Column newTarget = (Column) getHost().getModel();
RelationReconnectionCommand command = new RelationReconnectionCommand(relation);
command.setNewTarget(newTarget);
return command;
}
use of org.talend.sqlbuilder.erdiagram.ui.commands.RelationReconnectionCommand in project tdi-studio-se by Talend.
the class ColumnGraphicalEditPolicy method getReconnectSourceCommand.
@Override
protected Command getReconnectSourceCommand(ReconnectRequest request) {
Relation relation = (Relation) request.getConnectionEditPart().getModel();
Column newSource = (Column) getHost().getModel();
RelationReconnectionCommand command = new RelationReconnectionCommand(relation);
command.setNewSource(newSource);
return command;
}
Aggregations