use of org.knime.workbench.editor2.commands.NewBendpointCreateCommand in project knime-core by knime.
the class ConnectionBendpointEditPolicy method getCreateBendpointCommand.
/**
* {@inheritDoc}
*/
protected Command getCreateBendpointCommand(final BendpointRequest req) {
int index = req.getIndex();
Point loc = req.getLocation();
ConnectionContainerEditPart editPart = (ConnectionContainerEditPart) getHost();
ZoomManager zoomManager = (ZoomManager) getHost().getRoot().getViewer().getProperty(ZoomManager.class.toString());
return new NewBendpointCreateCommand(editPart, getWorkflowManager(), index, loc, zoomManager);
}
Aggregations