]> gerrit.simantics Code Review - simantics/interop.git/blobdiff - org.simantics.interop.update/src/org/simantics/interop/update/model/UpdateTree.java
Add third Resource reference to UpdateEditorInput for three-way
[simantics/interop.git] / org.simantics.interop.update / src / org / simantics / interop / update / model / UpdateTree.java
index 107c2b89a4b1e5ef1444659677e626b6cf3a371b..739667228a01291bea2cdf07789e719b72624672 100644 (file)
@@ -42,11 +42,11 @@ public class UpdateTree {
        }
        
        protected UpdateNode createNode(ReadGraph g, Status status, Resource r) throws DatabaseException {
-               return new UpdateNode(status, r);
+               return new UpdateNode(g,status, r);
        }
        
-       protected UpdateNode createNode(Status status, UpdateOp op) {
-               return new UpdateNode(status, op);
+       protected UpdateNode createNode(ReadGraph g, Status status, UpdateOp op) throws DatabaseException{
+               return new UpdateNode(g,status, op);
        }
        
        private UpdateNode createNode(ReadGraph g, Resource r1, Resource r2) throws DatabaseException {
@@ -56,10 +56,10 @@ public class UpdateTree {
                        nodes.put(r1, node);
                        nodes.put(r2, node);
                } else if (r1 != null) {
-                       node = createNode(Status.DELETED ,updateOps.getUpdateOp(r1));
+                       node = createNode(g,Status.DELETED ,updateOps.getUpdateOp(r1));
                        nodes.put(r1, node);
                } else if (r2 != null) {
-                       node = createNode(Status.NEW, updateOps.getUpdateOp(r2));
+                       node = createNode(g,Status.NEW, updateOps.getUpdateOp(r2));
                        nodes.put(r2, node);
                }
                return node;