use of org.knime.workbench.editor2.commands.NewBendpointMoveCommand in project knime-core by knime.
the class ConnectionBendpointEditPolicy method getMoveBendpointCommand.
/**
* {@inheritDoc}
*/
protected Command getMoveBendpointCommand(final BendpointRequest request) {
// index of the bendpoint to move
int index = request.getIndex();
Point loc = request.getLocation();
ConnectionContainerEditPart edit = (ConnectionContainerEditPart) getHost();
ZoomManager zoomManager = (ZoomManager) getHost().getRoot().getViewer().getProperty(ZoomManager.class.toString());
WorkflowManager m = getWorkflowManager();
return new NewBendpointMoveCommand(edit, m, index, loc, zoomManager);
}
Aggregations