diff --git a/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java b/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java index b1b8bb6..dd86d2a 100644 --- a/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java +++ b/AlgebraicDataflowArchitectureModel/src/application/editor/Editor.java @@ -32,6 +32,7 @@ public class Editor { protected DataTransferModel model = null; + protected mxGraph graph; private final mxGraphComponent graphComponent; @@ -303,7 +304,7 @@ StringBuilder fileString = new StringBuilder(); fileString.append("model {\n"); - fileString.append(this.model.getSourceText()); + fileString.append(model.getSourceText()); fileString.append("}\n"); fileString.append("geometry {\n"); diff --git a/AlgebraicDataflowArchitectureModel/src/application/editor/stages/PushPullSelectionStage.java b/AlgebraicDataflowArchitectureModel/src/application/editor/stages/PushPullSelectionStage.java index 6e3020d..64edd98 100644 --- a/AlgebraicDataflowArchitectureModel/src/application/editor/stages/PushPullSelectionStage.java +++ b/AlgebraicDataflowArchitectureModel/src/application/editor/stages/PushPullSelectionStage.java @@ -123,6 +123,7 @@ public void constructGraph() { ((mxGraphModel) graph.getModel()).clear(); Object parent = graph.getDefaultParent(); + graph.getModel().beginUpdate(); try { mxGeometry geo1 = new mxGeometry(0, 0.5, PORT_DIAMETER, PORT_DIAMETER);