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

Method checkSketchbookTemplate

app/src/processing/app/Mode.java:290–299  ·  view source on GitHub ↗

See if the user has their own template for this Mode. If the default extension is "pde", this will look for a file called sketch.pde to use as the template for all sketches.

()

Source from the content-addressed store, hash-verified

288 * as the template for all sketches.
289 */
290 protected File checkSketchbookTemplate() {
291 File user = new File(Base.getSketchbookTemplatesFolder(), getTitle());
292 if (user.exists()) {
293 File template = new File(user, "sketch." + getDefaultExtension());
294 if (template.exists() && template.canRead()) {
295 return user;
296 }
297 }
298 return null;
299 }
300
301
302 public File getTemplateFolder() {

Callers 1

addTemplateFilesMethod · 0.95

Calls 3

getTitleMethod · 0.95
getDefaultExtensionMethod · 0.95

Tested by

no test coverage detected