Saves the value of the string text in the preferences file using the keyword key . The string can be retrieved using the appropriate get() method. @see #get(String,String)
(String key, String text)
| 247 | * @see #get(String,String) |
| 248 | */ |
| 249 | public static void set(String key, String text) { |
| 250 | if (key.indexOf('.')<1) |
| 251 | throw new IllegalArgumentException("Key must have a prefix"); |
| 252 | if (text==null) |
| 253 | ijPrefs.remove(KEY_PREFIX+key); |
| 254 | else |
| 255 | ijPrefs.put(KEY_PREFIX+key, text); |
| 256 | } |
| 257 | |
| 258 | /** Saves the value of the integer <code>value</code> in the preferences |
| 259 | * file using the keyword <code>key</code>. The value can be |
no test coverage detected