public class DefaultAnchorGenerator extends DummyMouseListener {
@Override
public void mouseClicked(GraphEditorMouseEvent e) {
if (e.getClickCount() == 2) {
VisualModel model = e.getModel();
<BUG>Node node = HitMan.hitTestForSelection(e.getPosition(), model);
</BUG>
if (node instanceof VisualConnection) {
VisualConnection connection = (VisualConnection) node;
WorkspaceEntry we = e.getEditor().getWorkspaceEntry();

public class DefaultAnchorGenerator extends DummyMouseListener {
@Override
public void mouseClicked(GraphEditorMouseEvent e) {
if (e.getClickCount() == 2) {
VisualModel model = e.getModel();
Node node = HitMan.hitTestCurrentLevelFirst(e.getPosition(), model);
if (node instanceof VisualConnection) {
VisualConnection connection = (VisualConnection) node;
WorkspaceEntry we = e.getEditor().getWorkspaceEntry();
