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

Method reload

app/src/processing/app/EditorTab.java:360–371  ·  view source on GitHub ↗

Reload the contents of our file.

()

Source from the content-addressed store, hash-verified

358 * Reload the contents of our file.
359 */
360 public void reload() {
361 String text;
362 try {
363 text = file.load();
364 } catch (IOException e) {
365 System.err.println(I18n.format("Warning: Failed to reload file: \"{0}\"",
366 file.getFileName()));
367 return;
368 }
369 setText(text);
370 setModified(false);
371 }
372
373 /**
374 * Get the TextArea object for use (not recommended). This should only

Callers 6

applyPreferencesMethod · 0.95
activatedMethod · 0.95
addFileMethod · 0.45
BaseMethod · 0.45
handleActivatedMethod · 0.45
onBoardOrPortChangeMethod · 0.45

Calls 5

formatMethod · 0.95
setTextMethod · 0.95
setModifiedMethod · 0.95
getFileNameMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected