FileDocCategorySizeDatePackage
PreferenceInitializer.javaAPI DocAndroid 1.5 API2182Wed May 06 22:41:10 BST 2009com.android.ide.eclipse.adt.preferences

PreferenceInitializer

public class PreferenceInitializer extends org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
Class used to initialize default preference values.

Fields Summary
Constructors Summary
Methods Summary
public voidinitializeDefaultPreferences()

        IPreferenceStore store = AdtPlugin.getDefault().getPreferenceStore();

        store.setDefault(AdtPlugin.PREFS_RES_AUTO_REFRESH, true);

        store.setDefault(AdtPlugin.PREFS_BUILD_VERBOSITY, BuildPreferencePage.BUILD_STR_NORMAL);
        
        store.setDefault(AdtPlugin.PREFS_HOME_PACKAGE, "android.process.acore"); //$NON-NLS-1$
        
        try {
            store.setDefault(AdtPlugin.PREFS_DEFAULT_DEBUG_KEYSTORE,
                    DebugKeyProvider.getDefaultKeyStoreOsPath());
        } catch (KeytoolException e) {
            AdtPlugin.log(e, "Get default debug keystore path failed"); //$NON-NLS-1$
        } catch (AndroidLocationException e) {
            AdtPlugin.log(e, "Get default debug keystore path failed"); //$NON-NLS-1$
        }