]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.proconf.g3d/src/org/simantics/proconf/g3d/preferences/PreferenceInitializer.java
git-svn-id: https://www.simantics.org/svn/simantics/3d/trunk@22279 ac1ea38d-2e2b...
[simantics/3d.git] / org.simantics.proconf.g3d / src / org / simantics / proconf / g3d / preferences / PreferenceInitializer.java
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
7  *\r
8  * Contributors:\r
9  *     VTT Technical Research Centre of Finland - initial API and implementation\r
10  *******************************************************************************/\r
11 package org.simantics.proconf.g3d.preferences;
12
13 import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
14 import org.eclipse.jface.preference.IPreferenceStore;
15 import org.simantics.proconf.g3d.Activator;
16
17
18 /**
19  * Class used to initialize default preference values.
20  */
21 public class PreferenceInitializer extends AbstractPreferenceInitializer {
22
23         /*
24          * (non-Javadoc)
25          * 
26          * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
27          */
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);
37         }
38
39 }