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

Method storeSketchLocation

app/src/processing/app/Base.java:598–603  ·  view source on GitHub ↗
(Editor editor, String index)

Source from the content-addressed store, hash-verified

596 }
597
598 private void storeSketchLocation(Editor editor, String index) {
599 String path = editor.getSketch().getMainFilePath();
600 String loc = StringUtils.join(editor.getPlacement(), ',');
601 PreferencesData.set("last.sketch" + index + ".path", path);
602 PreferencesData.set("last.sketch" + index + ".location", loc);
603 }
604
605 private int[] retrieveSketchLocation(String index) {
606 if (PreferencesData.get("last.screen.height") == null)

Callers 1

storeSketchesMethod · 0.95

Calls 5

setMethod · 0.95
getMainFilePathMethod · 0.80
getSketchMethod · 0.45
joinMethod · 0.45
getPlacementMethod · 0.45

Tested by

no test coverage detected