1 11 package org.eclipse.update.internal.core; 12 13 import org.eclipse.core.runtime.Plugin; 14 import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; 15 16 19 public class UpdatePreferencesInitializer extends AbstractPreferenceInitializer { 20 21 24 public UpdatePreferencesInitializer() { 25 super(); 26 } 27 28 44 public void initializeDefaultPreferences() { 45 Plugin plugin = UpdateCore.getPlugin(); 46 plugin.getPluginPreferences().setDefault(UpdateCore.P_CHECK_SIGNATURE, true); 47 plugin.getPluginPreferences().setDefault(UpdateCore.P_AUTOMATICALLY_CHOOSE_MIRROR, false); 48 plugin.getPluginPreferences().setDefault(UpdateCore.P_HISTORY_SIZE, UpdateCore.DEFAULT_HISTORY); 49 plugin.getPluginPreferences().setDefault(UpdateCore.P_UPDATE_VERSIONS, UpdateCore.EQUIVALENT_VALUE); 50 } 51 } 52 | Popular Tags |