use of com.intellij.vcs.log.ui.frame.MainFrame in project intellij-community by JetBrains.
the class FocusTextFilterAction method actionPerformed.
@Override
public void actionPerformed(@NotNull AnActionEvent e) {
VcsLogUtil.triggerUsage(e);
Project project = e.getRequiredData(CommonDataKeys.PROJECT);
MainFrame mainFrame = ((VcsLogUiImpl) e.getRequiredData(VcsLogDataKeys.VCS_LOG_UI)).getMainFrame();
if (mainFrame.getTextFilter().getTextEditor().hasFocus()) {
IdeFocusManager.getInstance(project).requestFocus(mainFrame.getGraphTable(), true);
} else {
IdeFocusManager.getInstance(project).requestFocus(mainFrame.getTextFilter(), true);
}
}
Aggregations