-
Notifications
You must be signed in to change notification settings - Fork 228
Find/replace overlay: allow pasting in multi-page editors #2509 #2516
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
Conversation
|
@HannesWell what do you think? |
Test Results 1 821 files + 1 821 1 821 suites +1 821 1h 55m 12s ⏱️ + 1h 55m 12s For more details on these failures, see this check. Results for commit 5c7a21c. ± Comparison against base commit 64af72a. ♻️ This comment has been updated with latest results. |
HannesWell
left a comment
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 this fix! I really appreciate that.
I tested it and it works as desired, but I cannot tell if there is a generally better way to implement this.
Since I think this is an important fix, I approve this for submission for RC1 as PMC member:
PMC +1
...kbench.texteditor/src/org/eclipse/ui/internal/findandreplace/overlay/FindReplaceOverlay.java
Outdated
Show resolved
Hide resolved
...kbench.texteditor/src/org/eclipse/ui/internal/findandreplace/overlay/FindReplaceOverlay.java
Outdated
Show resolved
Hide resolved
…tform#2509 While actions of the target editor are properly deactivated when the target is an ordinary, single-page editor, the same does not happen when the target is a multi-page editor. In consequence, for example, you cannot paste clipboard content into the overlay via the according keyboard shortcut (CTRL+V), but it will paste into the target editor instead. With this change, the functionality to deactivate target editor actions is extended to also deactivate the relevant global actions (cut, copy, paste, etc.) that editors like multi-page editors fall back to. Fixes to eclipse-platform#2509
26e31ce to
5c7a21c
Compare
|
Thank you for the feedback and the approval, Hannes! By accident, I had to search through several Manifests right after proposing this PR and experienced how annoying the issue is. Seems like I had no need to search in Manifests for quite a while. So now I definitely agree that this should have high priority and that it should go into the upcoming release. |
Yes, absolutely 😅 |
|
Failing test is unrelated: #370 |
|
@HeikoKlare I have this problem in Bndtools / BndEditor with Eclipse 2024-12 which under the hood is a It happens in the Source tab (which is a org.eclipse.ui.forms.editor.FormPage extends EditorPart implements IFormPage https://github.com/bndtools/bnd/blob/9ed91bd967559c0bf963753990e96719bf6ea4cb/bndtools.core/src/bndtools/editor/pages/BundleContentPage.java#L39)
Is this a different / new case which needs to be handled? (and maybe added to the umbrello issue #2021) Or is there something Bndtools should do, to fix it? |
|
I fixed some related problems during the current release cycle because I noticed the PDE target editor was working poorly. I would suggest testing with 2025-03 / 4.35, though it's too late now to fix anything for that release. Any fixes will have to happen for 2025-06 / 4.36... |
I just tested with 2025-03 / 4.35 RC1 and I confirm the problem in Bndtools Editor is fixed 👍 |
While actions of the target editor are properly deactivated when the target is an ordinary, single-page editor, the same does not happen when the target is a multi-page editor. In consequence, for example, you cannot paste clipboard content into the overlay via the according keyboard shortcut (CTRL+V), but it will paste into the target editor instead.
With this change, the functionality to deactivate target editor actions is extended to also deactivate the relevant global actions (cut, copy, paste, etc.) that editors like multi-page editors fall back to.
Fixes to #2509
Note
I hope there is a better solution to deactivate the according action handlers in a multi-page editor than this, but I did not find it so far. Still, I think this is better than not being able to use common shortcuts for cut, copy, paste etc. when using multi-page editors.
Behavior
Without the fix:

With the fix:
