MCPcopy Index your code
hub / github.com/benfry/processing4 / checkSketchbookPref

Method checkSketchbookPref

app/src/processing/app/Preferences.java:370–382  ·  view source on GitHub ↗

Check for a 4.0 sketchbook location, and if none exists, try to grab it from the 3.0 sketchbook location. @return true if a location was found and the pref didn't exist

()

Source from the content-addressed store, hash-verified

368 * @return true if a location was found and the pref didn't exist
369 */
370 static protected boolean checkSketchbookPref() {
371 // If a 4.0 sketchbook location has never been inited
372 if (getSketchbookPath() == null) {
373 String threePath = get("sketchbook.path.three"); //$NON-NLS-1$
374 // If they've run the 3.0 version, start with that location
375 if (threePath != null) {
376 setSketchbookPath(threePath);
377 return true; // save the sketchbook right away
378 }
379 // Otherwise it'll be null, and reset properly by Base
380 }
381 return false;
382 }
383
384
385 static public String getOldSketchbookPath() {

Callers 1

initMethod · 0.95

Calls 3

getSketchbookPathMethod · 0.95
getMethod · 0.95
setSketchbookPathMethod · 0.95

Tested by

no test coverage detected