Skip to content

Find/Replace overlay: assign control IDs at creation time#4191

Merged
HeikoKlare merged 1 commit into
eclipse-platform:masterfrom
HeikoKlare:findreplace-overlay-assign-ids-at-creation
Jul 19, 2026
Merged

Find/Replace overlay: assign control IDs at creation time#4191
HeikoKlare merged 1 commit into
eclipse-platform:masterfrom
HeikoKlare:findreplace-overlay-assign-ids-at-creation

Conversation

@HeikoKlare

Copy link
Copy Markdown
Contributor

Currently, references to most controls of the FindReplaceOverlay are stored as fields of the class. Some are completely unused and others are only stored to later assign IDs to those controls (for testing). That ID assignment method was called from multiple places with an internal guard depending on the UI state (i.e., visibility of the replace bar) for not touching not-yet-created controls.

This change inlines the assignment of IDs to the controls. This avoids the scattered calls of ID assignment and the guard, and lets the ToolItem fields that were only used for ID assignment become local variables.

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Test Results

   855 files  ±0     855 suites  ±0   48m 48s ⏱️ - 3m 10s
 8 119 tests ±0   7 876 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 259 runs  ±0  19 605 ✅ ±0  654 💤 ±0  0 ❌ ±0 

Results for commit 2c90d97. ± Comparison against base commit 49129cf.

♻️ This comment has been updated with latest results.

Currently, references to most controls of the FindReplaceOverlay are
stored as fields of the class. Some are completely unused and others are
only stored to later assign IDs to those controls (for testing). That ID
assignment method was called from multiple places with an internal guard
depending on the UI state (i.e., visibility of the replace bar) for not
touching not-yet-created controls.

This change inlines the assignment of IDs to the controls. This avoids
the scattered calls of ID assignment and the guard, and lets the
ToolItem fields that were only used for ID assignment become local
variables.
@HeikoKlare
HeikoKlare force-pushed the findreplace-overlay-assign-ids-at-creation branch from c35e6ce to 2c90d97 Compare July 18, 2026 23:01
@HeikoKlare
HeikoKlare merged commit 271caf6 into eclipse-platform:master Jul 19, 2026
21 of 22 checks passed
@HeikoKlare
HeikoKlare deleted the findreplace-overlay-assign-ids-at-creation branch July 19, 2026 08:58
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