-
Notifications
You must be signed in to change notification settings - Fork 188
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 Logic: Allow reset of Incremental Base Position #2104
Conversation
@HeikoKlare I am not sure what is failing here. Can you please have a look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change is almost good to go. It provides a dedicated way of resetting the incremental base position, which removes a workaround in the find/replace overlay. I only have two minor comments regarding documentation.
Just one further thought on the design of the FindReplaceLogic: In the long term, I hope that we find a design which does not require the consumer of the FindReplaceLogic to think about when to reset the incremental base position, but that the logic provides a proper level of abstraction in it's functionality so that resetting the incremental base position can be hidden within it. But let's see if that will be possible and reasonable, or if that would require to increase the level of abstraction of the FindReplaceLogic too far. With this change, we can first make the behavior of incremental base position updates consistent and provide regression proper tests before maybe improving the design again.
...pse.ui.workbench.texteditor/src/org/eclipse/ui/internal/findandreplace/FindReplaceLogic.java
Show resolved
Hide resolved
...se.ui.workbench.texteditor/src/org/eclipse/ui/internal/findandreplace/IFindReplaceLogic.java
Outdated
Show resolved
Hide resolved
The failure was because of this issue: eclipse-pde/eclipse.pde#1310 Note that this kind of failure makes the build for that OS fail immediately, so you should restart the job as you might miss broken tests or other failures specific to that OS otherwise. |
...pse.ui.workbench.texteditor/src/org/eclipse/ui/internal/findandreplace/FindReplaceLogic.java
Show resolved
Hide resolved
...se.ui.workbench.texteditor/src/org/eclipse/ui/internal/findandreplace/IFindReplaceLogic.java
Show resolved
Hide resolved
@HeikoKlare once the tests run through and you give me your OK, I will merge this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the final improvement! This is good to go from my side.
Feel free to merge once the builds/checks have succeeded.
Allow the client to reset the base position for incremental search without enabling/disabling the Incremental search. fixes eclipse-platform#1913
…-platform#2104) Allow the client to reset the base position for incremental search without enabling/disabling the Incremental search. fixes eclipse-platform#1913
Allow the client to reset the base position for incremental search without enabling/disabling the Incremental search.
fixes #1913