]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.modeling.tests/src/org/simantics/modeling/tests/commands/SetDevelopmentProperty.java
Small but effective HiDPI fixes for platform G2D
[simantics/platform.git] / bundles / org.simantics.modeling.tests / src / org / simantics / modeling / tests / commands / SetDevelopmentProperty.java
1 package org.simantics.modeling.tests.commands;
2
3 import org.simantics.databoard.binding.Binding;
4 import org.simantics.db.testing.common.CommandSequenceEnvironment;
5 import org.simantics.db.testing.common.WriteCommand;
6 import org.simantics.utils.Development;
7
8 public class SetDevelopmentProperty extends WriteCommand<CommandSequenceEnvironment> {
9
10         transient private String key;
11         transient private Object value;
12         transient private Binding binding;
13         
14         public SetDevelopmentProperty(String key, Object value, Binding binding) {
15                 this.key = key;
16                 this.value = value;
17                 this.binding = binding;
18         }
19         
20         @Override
21         public void run(CommandSequenceEnvironment environment) throws Exception {
22
23                 Development.setProperty(key, value, binding);
24                 
25         }
26
27 }