Code example for Preferences

Methods: put

0
properties.remove(key);
    } 
    else 
    { 
      properties.put(key, value);
    } 
  } 
 
  private String getString(final String key)
  { 
    return properties.get(key, null);
  } 
   
 
  public String getDateFormatPattern()
  { 
    final String s = getString(DATE_FORMAT_PATTERN);
    if (StringUtils.isEmpty(s))
    { 
      return "yyyy-MM-dd";// NON-NLS