From: Antti Villberg Date: Thu, 19 Jul 2018 08:17:28 +0000 (+0300) Subject: Getter for experiment from DynamicExperimentActionContext X-Git-Tag: v1.43.0~136^2~442 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F37%2F1937%2F1;p=simantics%2Fplatform.git Getter for experiment from DynamicExperimentActionContext gitlab #47 Change-Id: I287952c70b5540b6ec4491cacba4a2804510b684 --- diff --git a/bundles/org.simantics.simulator.toolkit/src/org/simantics/simulator/toolkit/DynamicExperimentActionContext.java b/bundles/org.simantics.simulator.toolkit/src/org/simantics/simulator/toolkit/DynamicExperimentActionContext.java index cdf478f3a..cc41cf050 100644 --- a/bundles/org.simantics.simulator.toolkit/src/org/simantics/simulator/toolkit/DynamicExperimentActionContext.java +++ b/bundles/org.simantics.simulator.toolkit/src/org/simantics/simulator/toolkit/DynamicExperimentActionContext.java @@ -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; + } }