From: Marko Luukkainen Date: Tue, 24 Nov 2020 12:22:32 +0000 (+0200) Subject: Handle added and removed properties as property modifications X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=5a297dfbc9f7791873759b78ee61b3f3ec19c67a;p=simantics%2Finterop.git Handle added and removed properties as property modifications Handling them as statement changes cause problems, if statements are asserted (it is not possible to locate correct subject Resouce). gitlab #25 Change-Id: I28cecb3f7df2369063b4d8fe1ca1ad2b7866b8b0 --- diff --git a/org.simantics.interop/src/org/simantics/interop/test/GraphComparator.java b/org.simantics.interop/src/org/simantics/interop/test/GraphComparator.java index 8232075..aae895b 100644 --- a/org.simantics.interop/src/org/simantics/interop/test/GraphComparator.java +++ b/org.simantics.interop/src/org/simantics/interop/test/GraphComparator.java @@ -1294,14 +1294,18 @@ public class GraphComparator { } case -1:{ if (DEBUG) System.out.println("Compare Prop diff1s " + printStatement(g,s1)); - addDeletion(s1); + // Use modification, since deletions do not support asserted statements + addModification(r1,s1,r2,null); + //addDeletion(s1); i1++; break; } case 1:{ if (DEBUG) System.out.println("Compare Prop diff2s " + printStatement(g,s2)); - addAddition(s2); + // Use modification, since additions do not support asserted statements + addModification(r1,null,r2,s2); + //addAddition(s2); i2++; break; }