Skip to content
Snippets Groups Projects
Commit 38940839 authored by Simon Barner's avatar Simon Barner
Browse files

- Prefer the potentially a bit less efficient but safer...

- Prefer the potentially a bit less efficient but safer Display.getDefault.syncExec() over Display.getDefault.asyncExec() to avoid NPEs triggered by model modifications
refs 2323
parent bb40d191
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ import org.fortiss.tooling.kernel.service.IPersistencyService;
* @author barner
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: 9E463FCE2A1B83977EFAE416F97B6DCD
* @ConQAT.Rating YELLOW Hash: A108501D4B4AC14E2FF4D02293B99559
*/
public abstract class AnnotationViewPartBase extends ViewPart implements ISelectionListener,
IAnnotationViewPart {
......@@ -139,7 +139,7 @@ public abstract class AnnotationViewPartBase extends ViewPart implements ISelect
// Ensure that refresh is run in the UI thread
final IModelElement updatedModelElement = modelElement;
Display.getDefault().asyncExec(new Runnable() {
Display.getDefault().syncExec(new Runnable() {
@Override
public void run() {
update(updatedModelElement);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment