fix: SelectAllAction of SearchView correctly propagates all selected items #3924
Conversation
|
Thank you for the fix. The fix itself looks good. A few small things I would ask you to clean up before merge:
|
|
Alternatively to 1, you can also create a PR with only this formatting change and rebase this one on top of it. |
cab3fd7 to
7255920
Compare
|
Thank you for the thorough review and your feedback. |
|
How can I reproduce the error in the IDE? If I search for something, like "test" and press CTRL+A, CTRL+C everything is already selected. Please describe the situation in which this does not work for you. (Might be a platform bug) |
|
Did you test that the paste of the clipboard content contains everything visually selected? |
|
I tested this with you helpful handler and it works well with your fix (and poorly without your fix). Could you please squash this to a single commit. I'll merge it after that... |
7255920 to
570b1d8
Compare
|
Thank you for your contribution and patience. |



Description
When using CTRL+A in the Search View to select the entire content of the view, all items are visually selected. However, not all selected elements are propagated to subsequent actions. Instead, only the elements that were selected before pressing CTRL+A are passed on.
Expected Behavior
All items that are visually selected after pressing CTRL+A should be propagated to subsequent actions.
How it was fixed
The
SelectAllActionimplementation in theorg.eclipse.searchplugin was updated to ensure that after visually selecting all items (e.g., via CTRL+A), the selection is also properly propagated to subsequent actions. This was achieved by explicitly setting the viewer's selection which triggers aSelectionChangedEventafter updating the widget selection, mirroring the approach used in theSelectAllActionclasses oforg.eclipse.debug.uiandorg.eclipse.jdt.ui.Steps to Reproduce
Before
After