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
()
| 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() { |
no test coverage detected