Skip to content

Commit 6c61abc

Browse files
wimjongmanlaeubi
authored andcommitted
TargetEditor.TargetChangedListener appears to expect to run on the UI
thread #1505 Possible fix for #1505
1 parent 2cb595d commit 6c61abc

File tree

1 file changed

+2
-1
lines changed
  • ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/targetdefinition

1 file changed

+2
-1
lines changed

ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/targetdefinition/TargetEditor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,8 @@ private ITargetDefinition loadTargetDefinition() throws CoreException {
532532
fTarget = service.newTarget();
533533
throw e;
534534
}
535-
TargetEditor.this.getTargetChangedListener().contentsChanged(fTarget, this, true, false);
535+
PlatformUI.getWorkbench().getDisplay().asyncExec(
536+
() -> TargetEditor.this.getTargetChangedListener().contentsChanged(fTarget, this, true, false));
536537
return fTarget;
537538
}
538539

0 commit comments

Comments
 (0)