()
| 76 | |
| 77 | |
| 78 | static protected void load() throws IOException { |
| 79 | records = new ArrayList<>(); |
| 80 | if (file.exists()) { |
| 81 | BufferedReader reader = PApplet.createReader(file); |
| 82 | String version = reader.readLine(); |
| 83 | if (version != null && version.equals(VERSION)) { |
| 84 | String line; |
| 85 | while ((line = reader.readLine()) != null) { |
| 86 | if (new File(line).exists()) { // don't add ghost entries |
| 87 | records.add(new Record(line)); |
| 88 | } else { |
| 89 | Messages.log("Ghost file found in recent: " + line); |
| 90 | } |
| 91 | } |
| 92 | } |
| 93 | reader.close(); |
| 94 | } |
| 95 | updateMenu(mainMenu); |
| 96 | updateMenu(toolbarMenu); |
| 97 | } |
| 98 | |
| 99 | |
| 100 | static protected void save() { |
no test coverage detected