MCPcopy
hub / github.com/arduino/Arduino / saveAs

Method saveAs

arduino-core/src/processing/app/SketchFile.java:295–302  ·  view source on GitHub ↗

Save this file to another location, used by Sketch.saveAs()

(File newFile)

Source from the content-addressed store, hash-verified

293 * Save this file to another location, used by Sketch.saveAs()
294 */
295 public void saveAs(File newFile) throws IOException {
296 if (storage == null)
297 return; /* Nothing to do */
298
299 BaseNoGui.saveFile(storage.getText(), newFile);
300 renamedTo(newFile);
301 storage.clearModified();
302 }
303}

Callers

nothing calls this directly

Calls 4

saveFileMethod · 0.95
renamedToMethod · 0.95
getTextMethod · 0.65
clearModifiedMethod · 0.65

Tested by

no test coverage detected