linepoints.remove(linepoints.size() - 1);
} else {
line.setLine(points.get(points.size() - 2),
points.get(points.size() - 1));
}
target.calculateIntersection(line, linepoints.get(linepoints.size() - 1));
assoc.setPoints(linepoints);
AddElementCommand command = new AddElementCommand(editor,
editor.getDiagram(), assoc);
editor.execute(command);
}