mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
replace: show replace pane even for readonly files.
This commit is contained in:
+1
-1
@@ -69,7 +69,7 @@ public class IncrementalFindAction extends EditorAction {
|
||||
|
||||
public boolean isEnabled(Editor editor, DataContext dataContext) {
|
||||
Project project = PlatformDataKeys.PROJECT.getData(DataManager.getInstance().getDataContext(editor.getComponent()));
|
||||
return project != null && !editor.isOneLineMode() && (!myReplace || editor.getDocument().isWritable());
|
||||
return project != null && !editor.isOneLineMode();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user