X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.simulation%2Fsrc%2Forg%2Fsimantics%2Fsimulation%2Fproject%2FExperimentManagerKeys.java;fp=bundles%2Forg.simantics.simulation%2Fsrc%2Forg%2Fsimantics%2Fsimulation%2Fproject%2FExperimentManagerKeys.java;h=2f8419b05f97feacccab22801404c561dc1a480c;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.simulation/src/org/simantics/simulation/project/ExperimentManagerKeys.java b/bundles/org.simantics.simulation/src/org/simantics/simulation/project/ExperimentManagerKeys.java new file mode 100644 index 000000000..2f8419b05 --- /dev/null +++ b/bundles/org.simantics.simulation/src/org/simantics/simulation/project/ExperimentManagerKeys.java @@ -0,0 +1,22 @@ +package org.simantics.simulation.project; + +import org.simantics.utils.datastructures.hints.IHintContext.Key; +import org.simantics.utils.datastructures.hints.IHintContext.KeyOf; + +/** + * @author Tuukka Lehtonen + */ +public final class ExperimentManagerKeys { + + /** + * Affects how {@link ExperimentManager} works when new experiments are + * activated through + * {@link IExperimentManager#startExperiment(org.simantics.db.Resource, IExperimentActivationListener, boolean)} + * . If this hint is set to {@link ExperimentManagerMode#SINGLE_EXPERIMENT}, + * the manager will shut down the previously active experiment before + * activating the new experiment. Otherwise the previous experiment will not + * be touched by ExperimentManager. + */ + public static final Key EXPERIMENT_MANAGER_MODE = new KeyOf(ExperimentManagerMode.class, "EXPERIMENT_MANAGER_MODE"); + +}