use of org.csstudio.opibuilder.editparts.FixedPointsConnectionRouter in project yamcs-studio by yamcs.
the class ManhattanBendpointEditPolicy method showMoveBendpointFeedback.
protected void showMoveBendpointFeedback(BendpointRequest request) {
if (originalRouter == null && !(getConnection().getConnectionRouter() instanceof FixedPointsConnectionRouter)) {
originalRouter = getConnection().getConnectionRouter();
getConnection().setConnectionRouter(new FixedPointsConnectionRouter());
}
if (originalConstraint == null) {
originalConstraint = getConnection().getRoutingConstraint();
}
getConnection().setRoutingConstraint(getNewPoints(request));
}
use of org.csstudio.opibuilder.editparts.FixedPointsConnectionRouter in project yamcs-studio by yamcs.
the class RerouteConnectionAction method selectionChanged.
@Override
public void selectionChanged(IAction action, ISelection selection) {
super.selectionChanged(action, selection);
if (getSelectedConnection() == null) {
return;
}
Connection figure = getSelectedConnection().getConnectionFigure();
action.setEnabled(figure != null && figure.getConnectionRouter() instanceof FixedPointsConnectionRouter);
}
Aggregations