X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.simulation.ui%2Fsrc%2Forg%2Fsimantics%2Fsimulation%2Fui%2Fpreferences%2FSimulationPreferences.java;fp=bundles%2Forg.simantics.simulation.ui%2Fsrc%2Forg%2Fsimantics%2Fsimulation%2Fui%2Fpreferences%2FSimulationPreferences.java;h=862f51d8d8d1f6711bff193ae15006b9d2dd3dab;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hp=5d43113783e2f0b0cbf73628a3ce9d3287978113;hpb=24e2b34260f219f0d1644ca7a138894980e25b14;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.simulation.ui/src/org/simantics/simulation/ui/preferences/SimulationPreferences.java b/bundles/org.simantics.simulation.ui/src/org/simantics/simulation/ui/preferences/SimulationPreferences.java index 5d4311378..862f51d8d 100644 --- a/bundles/org.simantics.simulation.ui/src/org/simantics/simulation/ui/preferences/SimulationPreferences.java +++ b/bundles/org.simantics.simulation.ui/src/org/simantics/simulation/ui/preferences/SimulationPreferences.java @@ -1,45 +1,45 @@ -/******************************************************************************* - * Copyright (c) 2007, 2010 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * VTT Technical Research Centre of Finland - initial API and implementation - *******************************************************************************/ -package org.simantics.simulation.ui.preferences; - -import org.eclipse.core.runtime.preferences.IEclipsePreferences; - -/** - * Constant definitions for plug-in preferences - */ -public final class SimulationPreferences { - - public static final String P_SIMULATION_STEP_DURATION = "simulation.step.duration"; - - public static final double DEFAULT_SIMULATION_STEP_DURATION = 0.1; - - public static final SimulationPreferences DEFAULT_PREFS - = new SimulationPreferences(null, DEFAULT_SIMULATION_STEP_DURATION); - - public final IEclipsePreferences prefs; - public final double stepDuration; - - public SimulationPreferences(double stepDuration) { - this(null, stepDuration); - } - - public SimulationPreferences(IEclipsePreferences prefs, double stepDuration) { - this.prefs = prefs; - this.stepDuration = stepDuration; - } - - @Override - public String toString() { - return getClass().getSimpleName() + "[step duration=" + stepDuration + "]"; - } - -} +/******************************************************************************* + * Copyright (c) 2007, 2010 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * VTT Technical Research Centre of Finland - initial API and implementation + *******************************************************************************/ +package org.simantics.simulation.ui.preferences; + +import org.eclipse.core.runtime.preferences.IEclipsePreferences; + +/** + * Constant definitions for plug-in preferences + */ +public final class SimulationPreferences { + + public static final String P_SIMULATION_STEP_DURATION = "simulation.step.duration"; + + public static final double DEFAULT_SIMULATION_STEP_DURATION = 0.1; + + public static final SimulationPreferences DEFAULT_PREFS + = new SimulationPreferences(null, DEFAULT_SIMULATION_STEP_DURATION); + + public final IEclipsePreferences prefs; + public final double stepDuration; + + public SimulationPreferences(double stepDuration) { + this(null, stepDuration); + } + + public SimulationPreferences(IEclipsePreferences prefs, double stepDuration) { + this.prefs = prefs; + this.stepDuration = stepDuration; + } + + @Override + public String toString() { + return getClass().getSimpleName() + "[step duration=" + stepDuration + "]"; + } + +}