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

Method loadPrefs

ij/src/main/java/ij/Prefs.java:528–538  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

526 }
527
528 @AstroImageJ(reason = "Widen access", modified = true)
529 public static boolean loadPrefs(String path) {
530 try {
531 InputStream is = new BufferedInputStream(new FileInputStream(path));
532 ijPrefs.load(is);
533 is.close();
534 return true;
535 } catch (Exception e) {
536 return false;
537 }
538 }
539
540 /** Saves user preferences in the IJ_Prefs.txt properties file. */
541 @AstroImageJ(reason = "Rename for AIJ", modified = true)

Callers 2

loadPreferencesMethod · 0.95
restoreAllAIJSettingsMethod · 0.95

Calls 2

loadMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected