Skip to content

Release observables and service references of the e4 model editor - #2550

Open
vogella wants to merge 1 commit into
eclipse-pde:masterfrom
vogella:vogella/e4-leaks-observables
Open

vogella wants to merge 1 commit into
eclipse-pde:masterfrom
vogella:vogella/e4-leaks-observables

Conversation

@vogella

@vogella vogella commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

PartStackEditor and StringModelFragment created a new detail observable on every selection or keystroke and never disposed it; they now set their viewer input once when the form is created. VirtualEntry kept listening to the model element after the tree had disposed the entry, and it now disposes its source observable along with its list. The IExtensionLookup and IBundleProjectService references are released after use, and cutting with an empty selection no longer leaves a clipboard undisposed.

@github-actions

github-actions Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Test Results

  141 files  +3    141 suites  +3   38m 9s ⏱️ + 2m 12s
3 602 tests +1  3 548 ✅ +1   54 💤 ±0  0 ❌ ±0 
9 555 runs  +3  9 425 ✅ +3  130 💤 ±0  0 ❌ ±0 

Results for commit 04559f5. ± Comparison against base commit 7558f74.

♻️ This comment has been updated with latest results.

PartStackEditor bound a new detail observable as viewer input on every
selection and StringModelFragment on every keystroke in the extended
element field, and none of them was disposed; both now set the input
once when the form is created. VirtualEntry kept its listener on the
model element after the tree disposed the entry's list, so it now
disposes its source observable with the list. The IExtensionLookup and
IBundleProjectService references are released after use, and cutting
with an empty selection no longer leaves a clipboard undisposed.

Assisted-by: multiple AI agents and layers of automated tooling 🤖
@vogella
vogella force-pushed the vogella/e4-leaks-observables branch from 3e96c83 to 04559f5 Compare October 10, 2026 10:13
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