View Javadoc

1   package net.sf.commonclipse.preferences;
2   
3   import net.sf.commonclipse.CCPlugin;
4   
5   import org.eclipse.core.runtime.Preferences;
6   import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
7   
8   
9   /***
10   * @author fgiust
11   * @version $Revision $ ($Author $)
12   */
13  public class CCPreferenceInitializer extends AbstractPreferenceInitializer
14  {
15  
16      /***
17       * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
18       */
19      public void initializeDefaultPreferences()
20      {
21          Preferences preferences = CCPlugin.getDefault().getPluginPreferences();
22          preferences.setDefault(CCPlugin.P_TOSTRING_BEAN, "bean"); //$NON-NLS-1$
23          preferences.setDefault(CCPlugin.P_TOSTRING_SUPER, false);
24          preferences.setDefault(CCPlugin.P_HASHCODE_SUPER, true);
25          preferences.setDefault(CCPlugin.P_EQUALS_SUPER, true);
26          preferences.setDefault(CCPlugin.P_COMPARETO_SUPER, true);
27          preferences.setDefault(CCPlugin.P_EXCLUDE, "class;log"); //$NON-NLS-1$
28      }
29  
30  }