From e43c1804b7ad9d94e96d43ac9446d40abfcede62 Mon Sep 17 00:00:00 2001 From: lempinen Date: Fri, 2 Jul 2010 13:26:16 +0000 Subject: [PATCH] git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16488 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../widgets/expressions/LookupInputOutputTable.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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() { -- 2.47.1