MCPcopy Index your code
hub / github.com/processing/processing / insertCode

Method insertCode

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

Source from the content-addressed store, hash-verified

255
256
257 protected void insertCode(SketchCode newCode) {
258 // make sure the user didn't hide the sketch folder
259 ensureExistence();
260
261 // add file to the code/codeCount list, resort the list
262 //if (codeCount == code.length) {
263 code = (SketchCode[]) PApplet.append(code, newCode);
264 codeCount++;
265 //}
266 //code[codeCount++] = newCode;
267 }
268
269
270 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