From 2be99ce499ee7a2657785fc348d5cb24d3be1650 Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Fri, 23 Aug 2019 15:49:10 +0300 Subject: [PATCH] Added getPredicate() for Modification class Left or right side statement can be null, but predicate is expected to be the same on both statements. gitlab #10 Change-Id: Idce23d4bc54ae19876bb444a5dd10b2af9661c04 --- .../src/org/simantics/interop/test/GraphChanges.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/org.simantics.interop/src/org/simantics/interop/test/GraphChanges.java b/org.simantics.interop/src/org/simantics/interop/test/GraphChanges.java index 48f4359..fb72ba5 100644 --- a/org.simantics.interop/src/org/simantics/interop/test/GraphChanges.java +++ b/org.simantics.interop/src/org/simantics/interop/test/GraphChanges.java @@ -83,6 +83,12 @@ public class GraphChanges { this.rightStm = rightStm; } + public Resource getPredicate() { + if (leftStm != null) + return leftStm.getPredicate(); + return rightStm.getPredicate(); + } + @Override public boolean equals(Object obj) { if (obj.getClass() != this.getClass()) -- 2.47.1