Finds the file with the given filename and returns its index. Returns -1 when the file was not found.
(File filename)
| 223 | * Returns -1 when the file was not found. |
| 224 | */ |
| 225 | public int findFileIndex(File filename) { |
| 226 | int i = 0; |
| 227 | for (SketchFile file : files) { |
| 228 | if (file.getFile().equals(filename)) |
| 229 | return i; |
| 230 | i++; |
| 231 | } |
| 232 | return -1; |
| 233 | } |
| 234 | |
| 235 | /** |
| 236 | * Check if renaming/saving this sketch to the given folder would |
no test coverage detected