Search in sources :

Example 1 with WindowWatcher

use of com.intellij.openapi.wm.impl.WindowWatcher in project intellij-community by JetBrains.

the class RequestFocusInToolWindowCmd method updateFocusedComponentForWatcher.

private static void updateFocusedComponentForWatcher(final Component c) {
    final WindowWatcher watcher = ((WindowManagerImpl) WindowManager.getInstance()).getWindowWatcher();
    final FocusWatcher focusWatcher = watcher.getFocusWatcherFor(c);
    if (focusWatcher != null && c.isFocusOwner()) {
        focusWatcher.setFocusedComponentImpl(c);
    }
}
Also used : FocusWatcher(com.intellij.openapi.wm.FocusWatcher) WindowManagerImpl(com.intellij.openapi.wm.impl.WindowManagerImpl) WindowWatcher(com.intellij.openapi.wm.impl.WindowWatcher)

Aggregations

FocusWatcher (com.intellij.openapi.wm.FocusWatcher)1 WindowManagerImpl (com.intellij.openapi.wm.impl.WindowManagerImpl)1 WindowWatcher (com.intellij.openapi.wm.impl.WindowWatcher)1