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.
()
| 241 | * as the template for all sketches. |
| 242 | */ |
| 243 | protected File checkSketchbookTemplate() { |
| 244 | File user = new File(Base.getSketchbookTemplatesFolder(), getTitle()); |
| 245 | if (user.exists()) { |
| 246 | File template = new File(user, "sketch." + getDefaultExtension()); |
| 247 | if (template.exists() && template.canRead()) { |
| 248 | return user; |
| 249 | } |
| 250 | } |
| 251 | return null; |
| 252 | } |
| 253 | |
| 254 | |
| 255 | public File getTemplateFolder() { |
no test coverage detected