-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- * VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.simulation.ui.preferences;\r
-\r
-import org.eclipse.core.runtime.preferences.IEclipsePreferences;\r
-\r
-/**\r
- * Constant definitions for plug-in preferences\r
- */\r
-public final class SimulationPreferences {\r
-\r
- public static final String P_SIMULATION_STEP_DURATION = "simulation.step.duration";\r
-\r
- public static final double DEFAULT_SIMULATION_STEP_DURATION = 0.1;\r
-\r
- public static final SimulationPreferences DEFAULT_PREFS\r
- = new SimulationPreferences(null, DEFAULT_SIMULATION_STEP_DURATION);\r
-\r
- public final IEclipsePreferences prefs;\r
- public final double stepDuration;\r
-\r
- public SimulationPreferences(double stepDuration) {\r
- this(null, stepDuration);\r
- }\r
-\r
- public SimulationPreferences(IEclipsePreferences prefs, double stepDuration) {\r
- this.prefs = prefs;\r
- this.stepDuration = stepDuration;\r
- }\r
-\r
- @Override\r
- public String toString() {\r
- return getClass().getSimpleName() + "[step duration=" + stepDuration + "]";\r
- }\r
-\r
-}\r
+/*******************************************************************************
+ * 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 + "]";
+ }
+
+}