@Override public boolean conflicts(ChangeConnectDescriptor a, ChangeNameDescriptor b) { return a.getLink().equals(b.getTarget()) || a.getPoint().equals(b.getTarget()); }
@Override public boolean conflicts(ChangeRemoveChildDescriptor a, ChangeConnectDescriptor b) { Layoutable.Identifier l = b.getPoint(); if (l instanceof Port.Identifier) l = ((Port.Identifier) l).getNode(); return (a.getChild().equals(l)); }
@Override public boolean conflicts2(ChangeConnectDescriptor a, ChangeConnectDescriptor b) { return a.getPoint().equals(b.getPoint()); }