From: lempinen Date: Fri, 2 Jul 2010 13:26:16 +0000 (+0000) Subject: git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16488 ac1ea38d-2e2b... X-Git-Tag: simantics-1.2.0~187 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=e43c1804b7ad9d94e96d43ac9446d40abfcede62;p=simantics%2Fsysdyn.git git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16488 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/LookupInputOutputTable.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/LookupInputOutputTable.java index f9f5c03b..27d539a0 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/LookupInputOutputTable.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/expressions/LookupInputOutputTable.java @@ -206,8 +206,10 @@ public class LookupInputOutputTable extends Composite { } public void refresh() { - tableViewer.setComparator(new InputOutputComparator()); - tableViewer.refresh(); + if(!tableViewer.getTable().isDisposed()) { + tableViewer.setComparator(new InputOutputComparator()); + tableViewer.refresh(); + } } class InputOutputCellModifier implements ICellModifier { @@ -242,7 +244,7 @@ public class LookupInputOutputTable extends Composite { refresh(); } } - + private void tableModified() { tableViewer.getTable().getDisplay().asyncExec(new Runnable() {