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

Method handleActivated

app/src/processing/app/Base.java:589–598  ·  view source on GitHub ↗

Called when a window is activated. Because of variations in native windowing systems, no guarantees about changes to the focused and active Windows can be made. Never assume that this Window is the focused or active Window until this Window actually receives a WINDOW_GAINED_FOCUS or WINDOW_ACTIVATED

(Editor whichEditor)

Source from the content-addressed store, hash-verified

587 * or WINDOW_ACTIVATED event.
588 */
589 public void handleActivated(Editor whichEditor) {
590 activeEditor = whichEditor;
591
592 // set the current window to be the console that's getting output
593 EditorConsole.setEditor(activeEditor);
594
595 // make this the next mode to be loaded
596 nextMode = whichEditor.getMode();
597 Preferences.set("mode.last", nextMode.getIdentifier()); //$NON-NLS-1$
598 }
599
600
601 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Callers 1

windowActivatedMethod · 0.80

Calls 4

setEditorMethod · 0.95
setMethod · 0.95
getIdentifierMethod · 0.80
getModeMethod · 0.45

Tested by

no test coverage detected