01: package net.refractions.udig.catalog.shp.preferences;
02:
03: import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
04: import org.eclipse.jface.preference.IPreferenceStore;
05:
06: import net.refractions.udig.catalog.internal.shp.ShpPlugin;
07:
08: /**
09: * Class used to initialize default preference values.
10: */
11: public class PreferenceInitializer extends
12: AbstractPreferenceInitializer {
13:
14: /*
15: * (non-Javadoc)
16: *
17: * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
18: */
19: public void initializeDefaultPreferences() {
20: IPreferenceStore store = ShpPlugin.getDefault()
21: .getPreferenceStore();
22: store.setDefault(PreferenceConstants.P_CREATE_INDEX, true);
23: store.setDefault(PreferenceConstants.P_INDEX_TYPE,
24: PreferenceConstants.QIX);
25: }
26:
27: }
|