From e64d969dfc4d5cd5db322b431b186b5f905d6763 Mon Sep 17 00:00:00 2001 From: Wim Jongman Date: Tue, 10 Dec 2024 15:46:56 +0100 Subject: [PATCH] TargetEditor.TargetChangedListener appears to expect to run on the UI thread #1505 Possible fix for #1505 --- .../pde/internal/ui/editor/targetdefinition/TargetEditor.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/targetdefinition/TargetEditor.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/targetdefinition/TargetEditor.java index 1c41f50a22..859608f381 100644 --- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/targetdefinition/TargetEditor.java +++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/targetdefinition/TargetEditor.java @@ -532,7 +532,8 @@ private ITargetDefinition loadTargetDefinition() throws CoreException { fTarget = service.newTarget(); throw e; } - TargetEditor.this.getTargetChangedListener().contentsChanged(fTarget, this, true, false); + PlatformUI.getWorkbench().getDisplay().asyncExec( + () -> TargetEditor.this.getTargetChangedListener().contentsChanged(fTarget, this, true, false)); return fTarget; }