(SketchController sketch)
| 628 | } |
| 629 | |
| 630 | protected void storeRecentSketches(SketchController sketch) { |
| 631 | if (sketch.isUntitled()) { |
| 632 | return; |
| 633 | } |
| 634 | |
| 635 | Set<String> sketches = new LinkedHashSet<>(); |
| 636 | sketches.add(sketch.getSketch().getMainFilePath()); |
| 637 | sketches.addAll(PreferencesData.getCollection("recent.sketches")); |
| 638 | |
| 639 | PreferencesData.setCollection("recent.sketches", sketches); |
| 640 | } |
| 641 | |
| 642 | protected void removeRecentSketchPath(String path) { |
| 643 | Collection<String> sketches = new LinkedList<>(PreferencesData.getCollection("recent.sketches")); |
no test coverage detected