MCPcopy Index your code
hub / github.com/processing/processing / getBoolean

Method getBoolean

app/src/processing/app/Preferences.java:282–298  ·  view source on GitHub ↗
(String attribute)

Source from the content-addressed store, hash-verified

280
281
282 static public boolean getBoolean(String attribute) {
283 String value = get(attribute); //, null);
284 return Boolean.parseBoolean(value);
285
286 /*
287 supposedly not needed, because anything besides 'true'
288 (ignoring case) will just be false.. so if malformed -> false
289 if (value == null) return defaultValue;
290
291 try {
292 return (new Boolean(value)).booleanValue();
293 } catch (NumberFormatException e) {
294 System.err.println("expecting an integer: " + attribute + " = " + value);
295 }
296 return defaultValue;
297 */
298 }
299
300
301 static public void setBoolean(String attribute, boolean value) {

Callers 15

initMethod · 0.95
isAllowedMethod · 0.95
prepareExportFolderMethod · 0.95
createAndShowGUIMethod · 0.95
handleOpenPromptMethod · 0.95
saveAsMethod · 0.95
copyAndLoadMethod · 0.95
removeMethod · 0.95
PdeInputHandlerMethod · 0.95
updateAppearanceMethod · 0.95
actionPerformedMethod · 0.95

Calls 2

getMethod · 0.95
parseBooleanMethod · 0.80

Tested by

no test coverage detected