]> gerrit.simantics Code Review - simantics/interop.git/blobdiff - org.simantics.interop.update/src/org/simantics/interop/update/model/ModelUpdate.java
Three-way comparison
[simantics/interop.git] / org.simantics.interop.update / src / org / simantics / interop / update / model / ModelUpdate.java
index 0ddd4e40378b8bd543def326ed84926b1998be79..2a263f117ff5f26eb398f468f7d41df270a622f2 100644 (file)
@@ -25,10 +25,13 @@ public abstract class ModelUpdate {
        private UpdateList updateList;
        
        private GraphChanges changes2;
-       private GraphChanges changes3;
        private UpdateTree updateTree2;
        private UpdateList updateList2;
        
+       private GraphChanges changes3;
+       private UpdateTree updateTree3;
+       private UpdateList updateList3;
+       
        private List<ChangeFilter> filters = new ArrayList<ChangeFilter>();
        
        boolean init = false;
@@ -141,15 +144,28 @@ public abstract class ModelUpdate {
        public GraphChanges getChanges2() {
                return changes2;
        }
-       public GraphChanges getChanges3() {
-               return changes3;
-       }
+       
        public UpdateTree getUpdateTree2() {
                return updateTree2;
        }
        public UpdateList getUpdateList2() {
                return updateList2;
        }
+       
+       public GraphChanges getChanges3() {
+               return changes3;
+       }
+       
+       public UpdateTree getUpdateTree3() throws DatabaseException{
+               if (updateTree3 == null && changes3 != null)
+                       updateTree3 = getUpdateTree(changes3);
+               return updateTree3;
+       }
+       public UpdateList getUpdateList3() throws DatabaseException {
+               if (updateList3 == null && changes3 != null)
+                       updateList3 = getUpdateList(changes3);
+               return updateList3;
+       }
 
        
        public void applyAll(WriteGraph graph) throws DatabaseException {