(String newName)
| 309 | |
| 310 | |
| 311 | public SketchFile addFile(String newName) throws IOException { |
| 312 | // Check the name will not cause any conflicts |
| 313 | File newFile = new File(folder, newName); |
| 314 | checkNewFilename(newFile); |
| 315 | |
| 316 | // Add a new sketchFile |
| 317 | SketchFile sketchFile = new SketchFile(this, newFile); |
| 318 | files.add(sketchFile); |
| 319 | Collections.sort(files, CODE_DOCS_COMPARATOR); |
| 320 | |
| 321 | return sketchFile; |
| 322 | } |
| 323 | |
| 324 | /** |
| 325 | * Save this sketch under the new name given. Unlike renameTo(), this |
nothing calls this directly
no test coverage detected