MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / set

Method set

ij/src/main/java/ij/Prefs.java:249–256  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 15

saveLocationMethod · 0.95
setGuiScaleMethod · 0.95
runMethod · 0.95
saveWindowLocationsMethod · 0.95
disposeMethod · 0.95
showDialogMethod · 0.95
runMethod · 0.95
runMethod · 0.95
runMethod · 0.95
runMethod · 0.95
showDialogMethod · 0.95
dialogItemChangedMethod · 0.95

Calls 4

indexOfMethod · 0.45
removeMethod · 0.45
putMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected