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

Method insertCode

app/src/processing/app/Sketch.java:262–272  ·  view source on GitHub ↗
(SketchCode newCode)

Source from the content-addressed store, hash-verified

260
261
262 protected void insertCode(SketchCode newCode) {
263 // make sure the user didn't hide the sketch folder
264 ensureExistence();
265
266 // add file to the code/codeCount list, resort the list
267 //if (codeCount == code.length) {
268 code = (SketchCode[]) PApplet.append(code, newCode);
269 codeCount++;
270 //}
271 //code[codeCount++] = newCode;
272 }
273
274
275 protected void sortCode() {

Callers 3

loadNewTabMethod · 0.95
nameCodeMethod · 0.95
addFileMethod · 0.95

Calls 2

ensureExistenceMethod · 0.95
appendMethod · 0.95

Tested by

no test coverage detected