X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.modeling.tests%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Ftests%2Fcommands%2FSetDevelopmentProperty.java;fp=bundles%2Forg.simantics.modeling.tests%2Fsrc%2Forg%2Fsimantics%2Fmodeling%2Ftests%2Fcommands%2FSetDevelopmentProperty.java;h=aa117f1e71f057004b731aae9b0cc943f450dde6;hb=ca6fcd858a0b82eb1b5a8f12c4d5df30e84393e0;hp=0000000000000000000000000000000000000000;hpb=67fd62f9c742337ec80eef658192db198a0efaac;p=simantics%2Fplatform.git 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 index 000000000..aa117f1e7 --- /dev/null +++ b/bundles/org.simantics.modeling.tests/src/org/simantics/modeling/tests/commands/SetDevelopmentProperty.java @@ -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 { + + 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