enable in-place replace action for Analyze Stacktrace (IDEA-CR-9987)
[idea/community.git] / platform / lang-impl / src / com / intellij / openapi / editor / actions / IncrementalFindAction.java
index a5bf21e817a4ae16a0c39634af5b61f3b6599f0b..347cb9e52d408d714eb1ef2ca20af114e38c1e10 100644 (file)
@@ -66,7 +66,8 @@ public class IncrementalFindAction extends EditorAction {
 
     @Override
     public boolean isEnabled(Editor editor, DataContext dataContext) {
-      if (myReplace && ConsoleViewUtil.isConsoleViewEditor(editor)) {
+      if (myReplace && ConsoleViewUtil.isConsoleViewEditor(editor) &&
+          !ConsoleViewUtil.isReplaceActionEnabledForConsoleViewEditor(editor)) {
         return false;
       }
       Project project = CommonDataKeys.PROJECT.getData(DataManager.getInstance().getDataContext(editor.getComponent()));