Uses the keyword key to retrieve a string from the preferences file. Returns defaultValue if the key is not found.
(String key, String defaultValue)
| 286 | preferences file. Returns <code>defaultValue</code> if the key |
| 287 | is not found. */ |
| 288 | public static String get(String key, String defaultValue) { |
| 289 | String value = ijPrefs.getProperty(KEY_PREFIX+key); |
| 290 | if (value == null) |
| 291 | return defaultValue; |
| 292 | else |
| 293 | return value; |
| 294 | } |
| 295 | |
| 296 | /** Uses the keyword <code>key</code> to retrieve a number from the |
| 297 | preferences file. Returns <code>defaultValue</code> if the key |
no test coverage detected