Skip to content

Don't bind update of ObjectEditPart to SWT.PaintItem event#1490

Merged
ptziegler merged 1 commit into
eclipse-windowbuilder:masterfrom
ptziegler:refresh-tree-viewer
May 1, 2026
Merged

Don't bind update of ObjectEditPart to SWT.PaintItem event#1490
ptziegler merged 1 commit into
eclipse-windowbuilder:masterfrom
ptziegler:refresh-tree-viewer

Conversation

@ptziegler
Copy link
Copy Markdown
Contributor

The PaintItem event might be fired while refreshing the JavaInfo model, i.e. after the old model has been disposed, but before the new model has been fully created. In such a situation, the update will throw a WIDGET_IS_DISPOSED exception, because the edit-part is still referencing the (now disposed) tree widget associated with the old model.

Note that this initial implementation was likely done as a performance optimization, to make sure that the visualization of the edit part is only calculated if the tree item is actually rendered.

Contributes to
#1485

The `PaintItem` event might be fired while refreshing the `JavaInfo`
model, i.e. after the old model has been disposed, but before the new
model has been fully created. In such a situation, the update will throw
a `WIDGET_IS_DISPOSED` exception, because the edit-part is still
referencing the (now disposed) tree widget associated with the old
model.

Note that this initial implementation was likely done as a performance
optimization, to make sure that the visualization of the edit part is
only calculated if the tree item is actually rendered.

Contributes to
eclipse-windowbuilder#1485
@ptziegler ptziegler added this to the 1.24.0 milestone May 1, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

Test Results

 2 720 files  ±0   2 720 suites  ±0   11h 10m 9s ⏱️ + 42m 35s
 7 018 tests ±0   6 972 ✅  - 1   45 💤 ±0  1 ❌ +1 
28 072 runs  ±0  27 877 ✅  - 1  194 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit bbe7fd2. ± Comparison against base commit 8b61bb4.

@ptziegler ptziegler merged commit 74973c6 into eclipse-windowbuilder:master May 1, 2026
5 of 8 checks passed
@ptziegler ptziegler deleted the refresh-tree-viewer branch May 1, 2026 13:09
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