Skip to content

Find/Replace overlay: separate command infrastructure into dedicated class#4184

Merged
HeikoKlare merged 1 commit into
eclipse-platform:masterfrom
HeikoKlare:findreplace-overlay-extract-overlaycommandsupport
Jul 14, 2026
Merged

Find/Replace overlay: separate command infrastructure into dedicated class#4184
HeikoKlare merged 1 commit into
eclipse-platform:masterfrom
HeikoKlare:findreplace-overlay-extract-overlaycommandsupport

Conversation

@HeikoKlare

Copy link
Copy Markdown
Contributor

Motivation

The Find/Replace overlay's command-related infrastructure — in particular the workaround that disables the target text editor's global action handlers while the overlay has focus — was embedded directly in FindReplaceOverlay. This made the class responsible for both UI layout and command lifecycle management.

This is part of the ongoing effort to separate concerns in the Find/Replace overlay, tracked in issue #1912.

Change

Introduce FindReplaceOverlayCommandSupport to own the overlay's command-related infrastructure. As a first step, the workaround that disables the target text editor's global action handlers (setTextEditorActionsActivated and DeactivateGlobalActionHandlers) is moved out of FindReplaceOverlay into this new class. FindReplaceOverlay now only calls commandSupport.onFocusGained/Lost() when its text controls gain or lose focus.

Towards proper Eclipse key binding handlers

Having a dedicated class own all command infrastructure is a prerequisite for incrementally replacing the current reflection-based workaround with proper Eclipse command-framework handlers for the overlay actions. This change prepares that future migration. It follows:


This change was created with the help of GitHub Copilot.

@HeikoKlare HeikoKlare force-pushed the findreplace-overlay-extract-overlaycommandsupport branch from 08623b5 to c56ac83 Compare July 12, 2026 20:03
@github-actions

github-actions Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Test Results

   855 files  ±0     855 suites  ±0   55m 42s ⏱️ + 6m 16s
 8 116 tests ±0   7 873 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 250 runs  ±0  19 596 ✅ ±0  654 💤 ±0  0 ❌ ±0 

Results for commit 766a139. ± Comparison against base commit ef70250.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare marked this pull request as ready for review July 12, 2026 21:02
class

Introduce FindReplaceOverlayCommandSupport to own the overlay's
command-related infrastructure. As a first step, move the workaround
that disables the target text editor's global action handlers
(setTextEditorActionsActivated and DeactivateGlobalActionHandlers)
out of FindReplaceOverlay into this new class. FindReplaceOverlay now
only calls commandSupport.onFocusGained/Lost().

Contributes to
eclipse-platform#1912

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@HeikoKlare HeikoKlare force-pushed the findreplace-overlay-extract-overlaycommandsupport branch from c56ac83 to 766a139 Compare July 14, 2026 07:22
@HeikoKlare HeikoKlare merged commit c4d7646 into eclipse-platform:master Jul 14, 2026
21 of 22 checks passed
@HeikoKlare HeikoKlare deleted the findreplace-overlay-extract-overlaycommandsupport branch July 14, 2026 10:47
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