]> gerrit.simantics Code Review - simantics/sysdyn.git/commit
A simple trick for saving experiment configuration values before running simulations...
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 3 May 2013 10:13:01 +0000 (10:13 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 3 May 2013 10:13:01 +0000 (10:13 +0000)
commit7ea7cfb78eadcd5749b5886a0c1317fbf22a0060
tree817cec563c06d1ec6f0a1b318be439feb9f54117
parent24afe0ce8e0d2c0956abd7dff55aabe73b66b449
A simple trick for saving experiment configuration values before running simulations if experiment configuration tab is open. The whole tab is wrapped in RemoveFocusBeforeExperimentComposite. HandlerUtil notices this and removes focus from the widget that has focus. This triggers saving the widget's value before simulation is run. (fixes #4242)

git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@27305 ac1ea38d-2e2b-0410-8846-a27921b304fc
13 files changed:
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/DisposeExperiment.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/RunBasicExperiment.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/SaveResultsHandler.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/ToggleSimulation.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/game/StepHandler.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/sensitivityAnalysis/RunSensitivityAnalysisExperiment.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/sensitivityAnalysis/SaveResultsHandler.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/sensitivityAnalysis/ToggleSimulation.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/simulationPlayback/PlaybackReloadHandler.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/GameExperimentTab.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/RemoveFocusBeforeExperimentComposite.java [new file with mode: 0644]
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/SensitivityAnalysisExperimentTab.java
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/utils/HandlerUtils.java