]> gerrit.simantics Code Review - simantics/3d.git/blobdiff - org.simantics.g3d/src/org/simantics/g3d/property/AnnotatedPropertyTabContributorFactory.java
Using SWT thread with Plant3d
[simantics/3d.git] / org.simantics.g3d / src / org / simantics / g3d / property / AnnotatedPropertyTabContributorFactory.java
index f5db540e81640a7082853e538e7aee28410219f8..c3d7376fd87af9af1fef64c6066b893d48671fdb 100644 (file)
@@ -673,6 +673,8 @@ public class AnnotatedPropertyTabContributorFactory implements PropertyTabContri
 //                             }
 //                     }
                        if (Thread.currentThread() == Display.getDefault().getThread()) {
+                               if (viewer.getTable().isDisposed())
+                                       return;
                                if (DEBUG)System.out.println("Viewer refresh " + id);
                                for (PropertyItem item : resolvedItems)
                                        if (!item.equals(selectedItem))