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

Method load

app/src/processing/app/Sketch.java:120–134  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

118
119
120 protected void load(String path) {
121 mainFile = new File(path);
122 folder = mainFile.getParentFile();
123 /*
124 // get the name of the sketch by chopping .pde or .java
125 // off of the main file name
126 String mainFilename = primaryFile.getName();
127 int suffixLength = mode.getDefaultExtension().length() + 1;
128 name = mainFilename.substring(0, mainFilename.length() - suffixLength);
129 */
130 // starting in 4.0 beta 6, use the folder name instead of the main tab
131 name = folder.getName();
132 disappearedWarning = false;
133 load();
134 }
135
136
137 /**

Callers 4

SketchMethod · 0.95
reloadMethod · 0.95
ThinkDifferentClass · 0.45
didChangeWatchedFilesMethod · 0.45

Calls 8

getSketchCodeFilesMethod · 0.95
sortCodeMethod · 0.95
setCurrentCodeMethod · 0.95
getFileMethod · 0.80
getMethod · 0.65
getNameMethod · 0.45
sizeMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected