MCPcopy Index your code
hub / github.com/arduino/Arduino / handleActivated

Method handleActivated

app/src/processing/app/Base.java:652–666  ·  view source on GitHub ↗
(Editor whichEditor)

Source from the content-addressed store, hash-verified

650 // never assume that this Window is the focused or active Window until this
651 // Window receives a WINDOW_GAINED_FOCUS or WINDOW_ACTIVATED event.
652 protected void handleActivated(Editor whichEditor) {
653 activeEditor = whichEditor;
654 activeEditor.rebuildRecentSketchesMenu();
655 if (PreferencesData.getBoolean("editor.external")) {
656 try {
657 // If the list of files on disk changed, recreate the tabs for them
658 if (activeEditor.getSketch().reload())
659 activeEditor.createTabs();
660 else // Let the current tab know it was activated, so it can reload
661 activeEditor.getCurrentTab().activated();
662 } catch (IOException e) {
663 System.err.println(e);
664 }
665 }
666 }
667
668 protected int[] defaultEditorLocation() {
669 int defaultWidth = PreferencesData.getInteger("editor.window.width.default");

Callers 1

windowActivatedMethod · 0.80

Calls 7

getBooleanMethod · 0.95
createTabsMethod · 0.80
activatedMethod · 0.80
getCurrentTabMethod · 0.80
reloadMethod · 0.45
getSketchMethod · 0.45

Tested by

no test coverage detected