1 11 12 package org.eclipse.jdt.apt.core.internal.util; 13 14 import java.util.Map ; 15 16 import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; 17 import org.eclipse.core.runtime.preferences.DefaultScope; 18 import org.eclipse.core.runtime.preferences.IEclipsePreferences; 19 import org.eclipse.jdt.apt.core.internal.AptPlugin; 20 import org.eclipse.jdt.apt.core.util.AptPreferenceConstants; 21 22 25 public class AptCorePreferenceInitializer extends AbstractPreferenceInitializer { 26 27 @Override 28 public void initializeDefaultPreferences() { 29 IEclipsePreferences defaultPreferences = new DefaultScope().getNode(AptPlugin.PLUGIN_ID); 30 for (Map.Entry <String ,String > entry : AptPreferenceConstants.DEFAULT_OPTIONS_MAP.entrySet()) { 31 defaultPreferences.put(entry.getKey(), entry.getValue()); 32 } 33 } 34 35 } 36 | Popular Tags |