Create a new SketchFile @param sketch The sketch this file belongs to @param file The file this SketchFile represents @param primary Whether this file is the primary file of the sketch
(Sketch sketch, File file)
| 92 | * Whether this file is the primary file of the sketch |
| 93 | */ |
| 94 | public SketchFile(Sketch sketch, File file) { |
| 95 | this.sketch = sketch; |
| 96 | this.file = file; |
| 97 | FileUtils.SplitFile split = FileUtils.splitFilename(file); |
| 98 | this.primary = split.basename.equals(sketch.getFolder().getName()) |
| 99 | && Sketch.SKETCH_EXTENSIONS.contains(split.extension); |
| 100 | } |
| 101 | |
| 102 | /** |
| 103 | * Set an in-memory storage for this file's text, that will be queried |
nothing calls this directly
no test coverage detected