Skip to content

Find/Replace overlay: use handler enablement for button enabled state#4195

Open
HeikoKlare wants to merge 1 commit into
eclipse-platform:masterfrom
HeikoKlare:findreplace-overlay-handler-enablement
Open

Find/Replace overlay: use handler enablement for button enabled state#4195
HeikoKlare wants to merge 1 commit into
eclipse-platform:masterfrom
HeikoKlare:findreplace-overlay-handler-enablement

Conversation

@HeikoKlare

Copy link
Copy Markdown
Contributor

The enablement of the buttons for search options of the find/replace overlay are currently derived from the availability of the underlying search option. However, there are actions attached to the buttons (changing activation of the search option) and the button enablement should actually reflect if that action is available or not. Though these are effectively equal, mapping the button enablement to the action availability is the conceptually more correct representation.

With this change, FindReplaceOverlayAction extends AbstractHandler, making the action itself a handler and providing and enablement state. Enablement of the buttons for the search options is not kept in sync with enablement of the action/handler via an according handler listener.

This is a standalone-reasonable change extracted from:

@github-actions

github-actions Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Test Results

   855 files  ±0     855 suites  ±0   51m 57s ⏱️ - 1m 6s
 8 120 tests ±0   7 877 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 262 runs  ±0  19 608 ✅ ±0  654 💤 ±0  0 ❌ ±0 

Results for commit af60bf7. ± Comparison against base commit 0fcade6.

♻️ This comment has been updated with latest results.

@HeikoKlare
HeikoKlare force-pushed the findreplace-overlay-handler-enablement branch from 8d4a5a8 to dec90cd Compare July 19, 2026 08:59
The enablement of the buttons for search options of the find/replace
overlay are currently derived from the availability of the underlying
search option. However, there are actions attached to the buttons
(changing activation of the search option) and the button enablement
should actually reflect if that action is available or not. Though these
are effectively equal, mapping the button enablement to the action
availability is the conceptually more correct representation.

With this change, FindReplaceOverlayAction extends AbstractHandler,
making the action itself a handler and providing and enablement state.
Enablement of the buttons for the search options is not kept in sync
with enablement of the action/handler via an according handler listener.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@HeikoKlare
HeikoKlare force-pushed the findreplace-overlay-handler-enablement branch from dec90cd to af60bf7 Compare July 19, 2026 17:38
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