Skip to content

Commit eb77047

Browse files
committed
Find/replace overlay: remove obsolete setting of button states
Several button states are still explicitly state upon changes in the logical find/replace state even though they are already updated via observer mechanisms. This change removes the obsolete selection calls on those buttons.
1 parent 3f3daf7 commit eb77047

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/findandreplace/overlay

bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/findandreplace/overlay/FindReplaceOverlay.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,6 @@ private void createSearchTools() {
543543
.withImage(FindReplaceOverlayImages.get(FindReplaceOverlayImages.KEY_FIND_NEXT))
544544
.withToolTipText(FindReplaceMessages.FindReplaceOverlay_downSearchButton_toolTip)
545545
.withAction(searchForwardAction).build();
546-
searchForwardButton.setSelection(true); // by default, search down
547546

548547
FindReplaceOverlayAction selectAllAction = new FindReplaceOverlayAction(this::performSelectAll);
549548
selectAllAction.addShortcuts(KeyboardShortcuts.SEARCH_ALL);
@@ -967,7 +966,6 @@ private void updateFromTargetSelection() {
967966
String selectionText = findReplaceLogic.getTarget().getSelectionText();
968967
if (selectionText.contains("\n")) { //$NON-NLS-1$
969968
findReplaceLogic.deactivate(SearchOptions.GLOBAL);
970-
searchInSelectionButton.setSelection(true);
971969
} else if (!selectionText.isEmpty()) {
972970
if (findReplaceLogic.isAvailableAndActive(SearchOptions.REGEX)) {
973971
selectionText = FindReplaceDocumentAdapter.escapeForRegExPattern(selectionText);
@@ -1024,7 +1022,6 @@ public void setPositionToTop(boolean shouldPositionOverlayOnTop) {
10241022

10251023
private void removeSearchScope() {
10261024
findReplaceLogic.activate(SearchOptions.GLOBAL);
1027-
searchInSelectionButton.setSelection(false);
10281025
}
10291026

10301027
private void setContentAssistsEnablement(boolean enable) {

0 commit comments

Comments
 (0)