]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.spreadsheet/src/org/simantics/spreadsheet/synchronization/NullUpdater.java
Adopt spreadsheet changes made in Balas development
[simantics/platform.git] / bundles / org.simantics.spreadsheet / src / org / simantics / spreadsheet / synchronization / NullUpdater.java
diff --git a/bundles/org.simantics.spreadsheet/src/org/simantics/spreadsheet/synchronization/NullUpdater.java b/bundles/org.simantics.spreadsheet/src/org/simantics/spreadsheet/synchronization/NullUpdater.java
new file mode 100644 (file)
index 0000000..f4e1cac
--- /dev/null
@@ -0,0 +1,24 @@
+package org.simantics.spreadsheet.synchronization;
+
+import org.simantics.spreadsheet.solver.SheetLineComponent;
+import org.simantics.structural.synchronization.base.CommandBuilder;
+import org.simantics.structural.synchronization.base.ModuleUpdaterBase;
+
+public class NullUpdater extends ModuleUpdaterBase<SheetLineComponent> {
+
+    public NullUpdater(String typeId) {
+        super(typeId);
+        isComposite = true;
+    }
+
+    @Override
+    public CommandBuilder createAddCommandBuilder(String name) {
+        return new NullCommandBuilder();
+    }
+
+    @Override
+    public CommandBuilder createUpdateCommandBuilder(String name) {
+        return new NullCommandBuilder();
+    }
+
+}
\ No newline at end of file