From d2a7847eec81903a5a48a8e764be5c87851cdef6 Mon Sep 17 00:00:00 2001 From: Antti Villberg Date: Thu, 19 Jul 2018 11:17:28 +0300 Subject: [PATCH] Getter for experiment from DynamicExperimentActionContext gitlab #47 Change-Id: I287952c70b5540b6ec4491cacba4a2804510b684 --- .../simulator/toolkit/DynamicExperimentActionContext.java | 4 ++++ 1 file changed, 4 insertions(+) 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; + } } -- 2.47.1