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);
}
}
Aggregations