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: streamline editability checking and improve tests #2061

Conversation

HeikoKlare
Copy link
Contributor

The logic for checking editability of the target of a FindReplaceOverlay is slightly scattered, resulting in not being capable of dealing with a change in the editability of the target editor.
This change streamlines the editability checking by dynamically adapting visibility replace-related widgets visibility instead of static (non-)creation of the widget.
To test this functionality, the test classes for the FindReplaceDialog and FindReplaceOverlay are adapted to properly reuse a FindReplaceAction once instantiated for a target instead of recreating it.

@HeikoKlare HeikoKlare force-pushed the findreplace-streamline-editability branch from 11c7454 to c7b09fc Compare July 8, 2024 19:18
Copy link
Contributor

github-actions bot commented Jul 8, 2024

Test Results

 1 815 files  ±0   1 815 suites  ±0   1h 35m 57s ⏱️ ±0s
 7 665 tests ±0   7 437 ✅ +1  228 💤 ±0  0 ❌  - 1 
24 156 runs  ±0  23 407 ✅ +1  749 💤 ±0  0 ❌  - 1 

Results for commit feb50d7. ± Comparison against base commit f488dac.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare marked this pull request as ready for review July 8, 2024 20:33
@HeikoKlare HeikoKlare force-pushed the findreplace-streamline-editability branch from c7b09fc to f72766a Compare July 9, 2024 14:22
The logic for checking editability of the target of a FindReplaceOverlay
is slightly scattered, resulting in not being capable of dealing with a
change in the editability of the target editor.
This change streamlines the editability checking by dynamically adapting
visibility replace-related widgets visibility instead of static
(non-)creation of the widget.
To test this functionality, the test classes for the FindReplaceDialog
and FindReplaceOverlay are adapted to properly reuse a FindReplaceAction
once instantiated for a target instead of recreating it.
@HeikoKlare HeikoKlare force-pushed the findreplace-streamline-editability branch from f72766a to feb50d7 Compare July 9, 2024 15:34
@HeikoKlare HeikoKlare merged commit a724c75 into eclipse-platform:master Jul 9, 2024
16 checks passed
@HeikoKlare HeikoKlare deleted the findreplace-streamline-editability branch July 9, 2024 16:42
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.

1 participant