325326327328329330331332333334335
private Wire willShorten(Location drag0, Location drag1) { Wire shorten = shortening; if (shorten == null) { return null; } else if (shorten.endsAt(drag0) || shorten.endsAt(drag1)) { return shorten; } else { return null; } }
326327328329330331332333334335336
Collection<Component> sel = canvas.getSelection().getComponents(); if (sel != null) { for (Component c : sel) { if (c instanceof Wire) { Wire w = (Wire) c; if (w.contains(loc) && !w.endsAt(loc)) return select; } } } }
391392393394395396397398399400401
349350351352353354355356357358359
Collection<Component> sel = canvas.getSelection().getComponents(); if (sel != null) { for (Component c : sel) { if (c instanceof Wire) { Wire w = (Wire) c; if (w.contains(loc) && !w.endsAt(loc)) { return select; } } }