Check through the various modes and see if this is a legit sketch. Because the default mode will be the first in the list, this will always prefer that one over the others.
(File subfolder, String item)
| 1854 | * prefer that one over the others. |
| 1855 | */ |
| 1856 | File checkSketchFolder(File subfolder, String item) { |
| 1857 | for (Mode mode : getModeList()) { |
| 1858 | File entry = new File(subfolder, item + "." + mode.getDefaultExtension()); //$NON-NLS-1$ |
| 1859 | // if a .pde file of the same prefix as the folder exists.. |
| 1860 | if (entry.exists()) { |
| 1861 | return entry; |
| 1862 | } |
| 1863 | } |
| 1864 | return null; |
| 1865 | } |
| 1866 | |
| 1867 | |
| 1868 | // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
no test coverage detected