}
public void updateControlPoints() {
List<Point> newControlPoints = connection.getControlPoints();
Connection c = connection;
Figure f = c.getInputSlot().getFigure();
Point p = new Point(f.getPosition());
p.translate(c.getInputSlot().getRelativePosition().x, f.getSize().height / 2);
Point p4 = new Point(f.getPosition());
p4.translate(c.getInputSlot().getRelativePosition().x, c.getInputSlot().getRelativePosition().y);
Figure f2 = c.getOutputSlot().getFigure();
Point p2 = new Point(f2.getPosition());
p2.translate(c.getOutputSlot().getRelativePosition().x, f2.getSize().height / 2);
Point p3 = new Point(f2.getPosition());
p3.translate(c.getOutputSlot().getRelativePosition().x, c.getOutputSlot().getRelativePosition().y);
/*if(controlPoints.size() >= 2) {
String className = Preferences.userNodeForPackage(PreferenceConstants.class).get(PreferenceConstants.KEY_LINE_GENERATOR, PreferenceConstants.DEFAULT_LINE_GENERATOR);
try {