]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.tests/src/org/simantics/modeling/tests/commands/SetDevelopmentProperty.java
Added missing org.simantics.modeling.tests plug-ins.
[simantics/platform.git] / bundles / org.simantics.modeling.tests / src / org / simantics / modeling / tests / commands / SetDevelopmentProperty.java
diff --git a/bundles/org.simantics.modeling.tests/src/org/simantics/modeling/tests/commands/SetDevelopmentProperty.java b/bundles/org.simantics.modeling.tests/src/org/simantics/modeling/tests/commands/SetDevelopmentProperty.java
new file mode 100644 (file)
index 0000000..aa117f1
--- /dev/null
@@ -0,0 +1,27 @@
+package org.simantics.modeling.tests.commands;
+
+import org.simantics.databoard.binding.Binding;
+import org.simantics.db.testing.common.CommandSequenceEnvironment;
+import org.simantics.db.testing.common.WriteCommand;
+import org.simantics.utils.Development;
+
+public class SetDevelopmentProperty extends WriteCommand<CommandSequenceEnvironment> {
+
+       transient private String key;
+       transient private Object value;
+       transient private Binding binding;
+       
+       public SetDevelopmentProperty(String key, Object value, Binding binding) {
+               this.key = key;
+               this.value = value;
+               this.binding = binding;
+       }
+       
+       @Override
+       public void run(CommandSequenceEnvironment environment) throws Exception {
+
+               Development.setProperty(key, value, binding);
+               
+       }
+
+}
\ No newline at end of file