From a3666180c7cab9fab4b4197f0bd62d461901fb48 Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Fri, 22 Aug 2014 05:40:27 +0000 Subject: [PATCH] refs #5204 Fixing SWTException widget is disposed git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30113 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../simantics/sysdyn/ui/properties/ArrayIndexesTab.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ArrayIndexesTab.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ArrayIndexesTab.java index 741cfcc2..0a2e68ec 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ArrayIndexesTab.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/ArrayIndexesTab.java @@ -408,9 +408,12 @@ public class ArrayIndexesTab extends LabelPropertyTabContributor implements Widg @Override public void run() { - up.getControl().setEnabled(finalEnabled); - down.getControl().setEnabled(finalEnabled); - remove.getControl().setEnabled(finalEnabled); + if (!up.getControl().isDisposed()) + up.getControl().setEnabled(finalEnabled); + if (!down.getControl().isDisposed()) + down.getControl().setEnabled(finalEnabled); + if (!remove.getControl().isDisposed()) + remove.getControl().setEnabled(finalEnabled); } }); } -- 2.47.1