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

Method getBoolean

ij/src/main/java/ij/Prefs.java:867–874  ·  view source on GitHub ↗

Retrieves a boolean from IJ_Props or IJ_Prefs.txt. Does not retrieve boolean set using Prefs.set().

(String key, boolean defaultValue)

Source from the content-addressed store, hash-verified

865 /** Retrieves a boolean from IJ_Props or IJ_Prefs.txt.
866 Does not retrieve boolean set using Prefs.set(). */
867 public static boolean getBoolean(String key, boolean defaultValue) {
868 if (props==null) return defaultValue;
869 String s = props.getProperty(key);
870 if (s==null)
871 return defaultValue;
872 else
873 return s.equals("true");
874 }
875
876 /** Finds a color in IJ_Props or IJ_Prefs.txt. */
877 public static Color getColor(String key, Color defaultColor) {

Callers 13

beepMethod · 0.95
showDialogMethod · 0.95
FITS_ReaderClass · 0.95
runMethod · 0.95
logMethod · 0.95
multiLogMethod · 0.95
FitsReaderClass · 0.95
updateCheckMethod · 0.95
dialogMethod · 0.95
loadPrefsMethod · 0.95
buildMenubarMethod · 0.95
setUpOnceMethod · 0.45

Calls 2

getPropertyMethod · 0.45
equalsMethod · 0.45

Tested by 2

setUpOnceMethod · 0.36
setUpOnceMethod · 0.36