--- /dev/null
+/*******************************************************************************\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);
+ }
+
+}