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)
| 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 | // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
no test coverage detected