]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.g3d/src/org/simantics/proconf/g3d/preferences/PreferenceInitializer.java
git-svn-id: https://www.simantics.org/svn/simantics/3d/trunk@22280 ac1ea38d-2e2b...
[simantics/3d.git] / org.simantics.g3d / src / org / simantics / proconf / g3d / preferences / PreferenceInitializer.java
diff --git a/org.simantics.g3d/src/org/simantics/proconf/g3d/preferences/PreferenceInitializer.java b/org.simantics.g3d/src/org/simantics/proconf/g3d/preferences/PreferenceInitializer.java
new file mode 100644 (file)
index 0000000..648c1d7
--- /dev/null
@@ -0,0 +1,39 @@
+/*******************************************************************************\r
+ * Copyright (c) 2007- VTT Technical Research Centre of Finland.\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.proconf.g3d.preferences;
+
+import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.simantics.proconf.g3d.Activator;
+
+
+/**
+ * Class used to initialize default preference values.
+ */
+public class PreferenceInitializer extends AbstractPreferenceInitializer {
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
+        */
+       public void initializeDefaultPreferences() {
+               IPreferenceStore store = Activator.getDefault()
+                               .getPreferenceStore();
+//             store.setDefault(PreferenceConstants.P_BOOLEAN, true);
+//             store.setDefault(PreferenceConstants.P_CHOICE, "choice2");
+//             store.setDefault(PreferenceConstants.P_STRING,"Default value");
+               store.setDefault(PreferenceConstants.POST_PROCESS, "none");
+               store.setDefault(PreferenceConstants.SHADOWS, true);
+               store.setDefault(PreferenceConstants.GIZMO_SCALE, 1.0);
+       }
+
+}