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
2024-03: "Find/Replace"-Button has no effect anymore without manually shifting focus back to the editor #1754
Comments
I can reproduce in I20240313-1800. @rhoehener : is this a regression? In which release it worked last? |
@iloveeclipse I noticed it immediately after switching from 2023-12 yesterday, so I'm assuming it's a regression since I use this functionality a lot, but not 100% sure. I tested again: I can reproduce this reliably by immediately clicking the "Find/Replace"-button (no need to click the Find/Replace with fields). |
OK, seems I can't reproduce on 4.30, so must be regression in 4.31. @HeikoKlare , @Wittmaxi : could you please investigate? |
Thanks for reporting the issue. We will have a look and provide a fix as soon as possible. |
…lipse-platform#1754 When opening the FindReplaceDialog with an active selection in a text viewer, the input field for the find string is filled with the content of that selection. In addition, the replace functionality of the dialog is activated. Currently, using the replace functionality does not work because it requires a find operation to be executed before, which is currently not done. This change performs the missing find operation before executing a replace operation. It adds an according regression test. Fixes eclipse-platform#1754
…lipse-platform#1754 When opening the FindReplaceDialog with an active selection in a text viewer, the input field for the find string is filled with the content of that selection. In addition, the replace functionality of the dialog is activated. Currently, using the replace functionality does not work because it requires a find operation to be executed before, which is currently not done. With this change, initializing the dialog with the current selection performs the missing find operation before executing a replace operation. The according functionality is refactored and a regression test is added. Fixes eclipse-platform#1754
…lipse-platform#1754 When opening the FindReplaceDialog with an active selection in a text viewer, the input field for the find string is filled with the content of that selection. In addition, the replace functionality of the dialog is activated. Currently, using the replace functionality does not work because it requires a find operation to be executed before, which is currently not done. With this change, initializing the dialog with the current selection performs the missing find operation before executing a replace operation. The according functionality is refactored and a regression test is added. Fixes eclipse-platform#1754
The reason for the bug is that replacement operations are enabled but no find operation has been executed before. An according exception is thrown and then swallowed by the dialog: Line 150 in 1122c63
Before #1132, some tracking for whether an initial search has to be performed before replace operations can be executed or before they should even be disabled was woven into several operations of the dialog class. I've proposed a fix in #1765. |
…lipse-platform#1754 When opening the FindReplaceDialog with an active selection in a text viewer, the input field for the find string is filled with the content of that selection. In addition, the replace functionality of the dialog is activated. Currently, using the replace functionality does not work because it requires a find operation to be executed before, which is currently not done. With this change, initializing the dialog with the current selection performs the missing find operation before executing a replace operation. The according functionality is refactored and a regression test is added. Fixes eclipse-platform#1754
…lipse-platform#1754 When opening the FindReplaceDialog with an active selection in a text viewer, the input field for the find string is filled with the content of that selection. In addition, the replace functionality of the dialog is activated. Currently, using the replace functionality does not work because it requires a find operation to be executed before, which is currently not done. With this change, initializing the dialog with the current selection performs the missing find operation before executing a replace operation. The according functionality is refactored and a regression test is added. Fixes eclipse-platform#1754
When opening the FindReplaceDialog with an active selection in a text viewer, the input field for the find string is filled with the content of that selection. In addition, the replace functionality of the dialog is activated. Currently, using the replace functionality does not work because it requires a find operation to be executed before, which is currently not done. With this change, initializing the dialog with the current selection performs the missing find operation before executing a replace operation. The according functionality is refactored and a regression test is added. Fixes #1754
To reproduce:
The text was updated successfully, but these errors were encountered: