Exemplo n.º 1
0
 @Override
 public boolean conflicts(ChangeConnectDescriptor a, ChangeNameDescriptor b) {
   return a.getLink().equals(b.getTarget()) || a.getPoint().equals(b.getTarget());
 }
Exemplo n.º 2
0
 @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));
 }
Exemplo n.º 3
0
 @Override
 public boolean conflicts2(ChangeConnectDescriptor a, ChangeConnectDescriptor b) {
   return a.getPoint().equals(b.getPoint());
 }