]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16488 ac1ea38d-2e2b...
authorlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 2 Jul 2010 13:26:16 +0000 (13:26 +0000)
committerlempinen <lempinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Fri, 2 Jul 2010 13:26:16 +0000 (13:26 +0000)
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/LookupInputOutputTable.java

index f9f5c03b42d78bfd357fd27d4fea16397444cd55..27d539a0e6b9caa577217966069e82fa30afd3a6 100644 (file)
@@ -206,8 +206,10 @@ public class LookupInputOutputTable extends Composite {
     }\r
 \r
     public void refresh() {\r
-        tableViewer.setComparator(new InputOutputComparator());\r
-        tableViewer.refresh();\r
+        if(!tableViewer.getTable().isDisposed()) {\r
+            tableViewer.setComparator(new InputOutputComparator());\r
+            tableViewer.refresh();\r
+        }\r
     }\r
 \r
     class InputOutputCellModifier implements ICellModifier {\r
@@ -242,7 +244,7 @@ public class LookupInputOutputTable extends Composite {
             refresh();\r
         }\r
     }\r
-    \r
+\r
     private void tableModified() {\r
         tableViewer.getTable().getDisplay().asyncExec(new Runnable() {\r
 \r