use of org.knime.core.node.workflow.ConnectionUIInformation.Builder in project knime-core by knime.
the class NewBendpointMoveCommand method undo.
/**
* {@inheritDoc}
*/
@Override
public void undo() {
ConnectionContainer connection = getConnection();
ConnectionUIInformation uiInfo = connection.getUIInfo();
Point oldLocation = m_oldLocation.getCopy();
Builder builder = ConnectionUIInformation.builder(uiInfo);
builder.removeBendpoint(m_index);
builder.addBendpoint(oldLocation.x, oldLocation.y, m_index);
// issue notification
connection.setUIInfo(builder.build());
}
Aggregations