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=d2a7847eec81903a5a48a8e764be5c87851cdef6;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; + } }