01: package net.refractions.udig.ui.preferences;
02:
03: import net.refractions.udig.internal.ui.MapPerspective;
04: import net.refractions.udig.internal.ui.UiPlugin;
05:
06: import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
07: import org.eclipse.jface.preference.IPreferenceStore;
08:
09: /**
10: * Class used to initialize default preference values.
11: */
12: public class PreferenceInitializer extends
13: AbstractPreferenceInitializer {
14:
15: public void initializeDefaultPreferences() {
16: IPreferenceStore store = UiPlugin.getDefault()
17: .getPreferenceStore();
18: store.setDefault(PreferenceConstants.P_ADVANCED_GRAPHICS, true);
19: store.setDefault(PreferenceConstants.P_DEFAULT_PERSPECTIVE,
20: MapPerspective.ID_PERSPECTIVE);
21: store.setDefault(PreferenceConstants.P_SHOW_TIPS, true);
22:
23: /*
24: * Don't put these here - put them in the plugin_customization.ini, so
25: * the user will get a warning if they are using the default
26: * implementation.
27: * -rg
28: */
29: // store.setDefault(PreferenceConstants.P_WORKBENCH_CONFIGURATION, "net.refractions.udig.internal.ui.UDIGWorkbenchConfiguration");
30: }
31:
32: }
|