1 /*******************************************************************************
\r
2 * Copyright (c) 2007- VTT Technical Research Centre of Finland.
\r
3 * All rights reserved. This program and the accompanying materials
\r
4 * are made available under the terms of the Eclipse Public License v1.0
\r
5 * which accompanies this distribution, and is available at
\r
6 * http://www.eclipse.org/legal/epl-v10.html
\r
9 * VTT Technical Research Centre of Finland - initial API and implementation
\r
10 *******************************************************************************/
\r
11 package org.simantics.proconf.g3d.preferences;
13 import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
14 import org.eclipse.jface.preference.IPreferenceStore;
15 import org.simantics.proconf.g3d.Activator;
19 * Class used to initialize default preference values.
21 public class PreferenceInitializer extends AbstractPreferenceInitializer {
26 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
28 public void initializeDefaultPreferences() {
29 IPreferenceStore store = Activator.getDefault()
30 .getPreferenceStore();
31 // store.setDefault(PreferenceConstants.P_BOOLEAN, true);
32 // store.setDefault(PreferenceConstants.P_CHOICE, "choice2");
33 // store.setDefault(PreferenceConstants.P_STRING,"Default value");
34 store.setDefault(PreferenceConstants.POST_PROCESS, "none");
35 store.setDefault(PreferenceConstants.SHADOWS, true);
36 store.setDefault(PreferenceConstants.GIZMO_SCALE, 1.0);