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