MCPcopy Index your code
hub / github.com/benfry/processing4 / load

Method load

app/src/processing/app/ui/Recent.java:78–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers 5

initMethod · 0.95
CLibraryInterface · 0.45
getLibCMethod · 0.45
reloadMethod · 0.45
loadSketchbookFileMethod · 0.45

Calls 6

createReaderMethod · 0.95
logMethod · 0.95
updateMenuMethod · 0.95
equalsMethod · 0.45
addMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected