8000 Encapsulate the Swing SpinnerModel using an ObservableValue by ptziegler · Pull Request #1227 · eclipse-windowbuilder/windowbuilder · GitHub
[go: up one dir, main page]

Skip to content

Encapsulate the Swing SpinnerModel using an ObservableValue#1227

Merged
ptziegler merged 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:swing-spinner-model
Sep 17, 2025
Merged

Encapsulate the Swing SpinnerModel using an ObservableValue#1227
ptziegler merged 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:swing-spinner-model

Conversation

@ptziegler
Copy link
Contributor

The SpinnerModel shown in the SpinnerModelDialog is currently updated in the SWT UI thread. On MacOS, this may lead to a deadlock, in case the SWT UI thread is waiting for the AWT event dispatch thread.

Access to this model is now guarded by an ObservableValue, which requires proper synchronization. The dialog has been restructured to make sure modifications to this value are done exclusively in the event dispatch thread and that the dialog is only updated in the SWT UI thread.

May close
#1204

@ptziegler ptziegler added this to the 1.22.0 milestone Sep 15, 2025
@github-actions
Copy link
github-actions bot commented Sep 15, 2025

Test Results

 2 720 files   2 720 suites   9h 58m 5s ⏱️
 6 989 tests  6 921 ✅  68 💤 0 ❌
27 956 runs  27 684 ✅ 272 💤 0 ❌

Results for commit 325d331.

♻️ This comment has been updated with latest results.

@ptziegler ptziegler force-pushed the swing-spinner-model branch 9 times, most recently from 79f6f0c to 505b854 Compare September 17, 2025 18:08
The SpinnerModel shown in the SpinnerModelDialog is currently updated in
the SWT UI thread. On MacOS, this may lead to a deadlock, in case the
SWT UI thread is waiting for the AWT event dispatch thread.

Access to this model is now guarded by an ObservableValue, which
requires proper synchronization. The dialog has been restructured to
make sure modifications to this value are done exclusively in the event
dispatch thread and that the dialog is only updated in the SWT UI
thread.

May close
eclipse-windowbuilder#1204
@ptziegler ptziegler merged commit 4997409 into eclipse-windowbuilder:master Sep 17, 2025
9 checks passed
@ptziegler ptziegler deleted the swing-spinner-model branch September 17, 2025 21:07
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

0