You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move activation logic for SearchOptions.INCREMENTAL to FindReplaceLogic
when "incremental search" is selected and "RegEx-Search" is as well,
the dialog/overlay will disable the option for "whole
words". This PR extracts that functionality into the Find/Replace-Logic.
Extracted from a Review-Comment in eclipse-platform#1791
Copy file name to clipboardExpand all lines: bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/findandreplace/FindReplaceLogic.java
Copy file name to clipboardExpand all lines: bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/findandreplace/IFindReplaceLogic.java
+6
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,12 @@ public interface IFindReplaceLogic {
66
66
*/
67
67
publicbooleanisRegExSearchAvailableAndActive();
68
68
69
+
/**
70
+
* {@return whether incremental search may be performed by the
71
+
* find/replace-logic based on the currently active options}
72
+
*/
73
+
publicbooleanisIncrementalSearchAvailable();
74
+
69
75
/**
70
76
* Updates the search result after the Text was Modified. Used in combination
71
77
* with <code>setIncrementalSearch(true)</code>. This method specifically allows
Copy file name to clipboardExpand all lines: tests/org.eclipse.ui.workbench.texteditor.tests/src/org/eclipse/ui/workbench/texteditor/tests/FindReplaceDialogTest.java
0 commit comments