use of com.intellij.find.EditorSearchSession in project intellij-community by JetBrains.
the class SwitchToReplace method update.
@Override
public void update(AnActionEvent e) {
Editor editor = e.getData(CommonDataKeys.EDITOR_EVEN_IF_INACTIVE);
EditorSearchSession search = e.getData(EditorSearchSession.SESSION_KEY);
e.getPresentation().setEnabled(editor != null && search != null && !ConsoleViewUtil.isConsoleViewEditor(editor));
}
use of com.intellij.find.EditorSearchSession in project intellij-community by JetBrains.
the class TogglePreserveCaseAction method update.
@Override
public void update(AnActionEvent e) {
super.update(e);
EditorSearchSession search = e.getData(EditorSearchSession.SESSION_KEY);
FindModel findModel = search != null ? search.getFindModel() : null;
e.getPresentation().setEnabled(findModel != null && !findModel.isRegularExpressions());
}
Aggregations