Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find/replace dialog: properly update search string #2322 #2327

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

HeikoKlare
Copy link
Contributor

The find/replace dialog does currently not properly update its search string. When changing the search string and pressing return to execute a search, the previous search string is taken. The reason is an existing workaround for event handling of Combos in GTK.

This change ensures that the search and replace input strings are properly updated upon every text modification in the according widgets.

Fixes #2322



The find/replace dialog does currently not properly update its search
string. When changing the search string and pressing return to execute a
search, the previous search string is taken. The reason is an existing
workaround for event handling of Combos in GTK.

This change ensures that the search and replace input strings are
properly updated upon every text modification in the according widgets.

Fixes eclipse-platform#2322
Copy link
Contributor

github-actions bot commented Sep 25, 2024

Test Results

 1 815 files  ±0   1 815 suites  ±0   1h 46m 21s ⏱️ + 10m 44s
 7 699 tests ±0   7 471 ✅ ±0  228 💤 ±0  0 ❌ ±0 
24 258 runs  ±0  23 511 ✅ ±0  747 💤 ±0  0 ❌ ±0 

Results for commit 4a3149a. ± Comparison against base commit c603575.

♻️ This comment has been updated with latest results.

@Wittmaxi
Copy link
Contributor

Wittmaxi commented Sep 26, 2024

Looks sound, however I wonder if it wouldn't be better to completely get rid of the combo boxes and use the input-element that the overlay uses.

  1. we get reusable history features and do less inside of the Dialog itself
  2. the guard-clause for the combo-box bug becomes irellevant - implicitly getting rid of the bug

@HeikoKlare HeikoKlare marked this pull request as ready for review September 26, 2024 16:11
@HeikoKlare
Copy link
Contributor Author

That might be a follow-up change. Still it has the risk of introducing regressions in the dialog, so we need to weigh that against the benefits of making that change. Aliging the two UIs makes sense, but we should ensure that the existing dialog remains usable in the same way as now for everyone sticking to it.

@HeikoKlare HeikoKlare merged commit 5aee5c5 into eclipse-platform:master Sep 26, 2024
16 checks passed
@HeikoKlare HeikoKlare deleted the issue-2322 branch September 26, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Find/Replace] changed search string is ignored by search dialog
2 participants