Getter for experiment from DynamicExperimentActionContext 37/1937/1
authorAntti Villberg <antti.villberg@semantum.fi>
Thu, 19 Jul 2018 08:17:28 +0000 (11:17 +0300)
committerAntti Villberg <antti.villberg@semantum.fi>
Thu, 19 Jul 2018 08:17:28 +0000 (11:17 +0300)
gitlab #47

Change-Id: I287952c70b5540b6ec4491cacba4a2804510b684

bundles/org.simantics.simulator.toolkit/src/org/simantics/simulator/toolkit/DynamicExperimentActionContext.java

index cdf478f3a4c3e9ed5d18702a9ad4706f95e61581..cc41cf0505a249ad235bd7929d1804ab859b39d4 100644 (file)
@@ -25,5 +25,9 @@ public class DynamicExperimentActionContext extends AbstractActionContext {
        public void set(String variableName, Object value, Binding binding) {
                experiment.setVariableValueById(variableName, value, binding);
        }
+       
+       public IDynamicExperimentLocal getExperiment() {
+           return experiment;
+       }
 
 }