Skip to content

Commit

Permalink
TargetEditor.TargetChangedListener appears to expect to run on the UI
Browse files Browse the repository at this point in the history
thread eclipse-pde#1505

Possible fix for eclipse-pde#1505
  • Loading branch information
wimjongman committed Dec 10, 2024
1 parent b8ce236 commit e64d969
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e64d969

Please sign in to comment.