]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Added missing isDisposed check.
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Sun, 20 Jun 2010 10:13:17 +0000 (10:13 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Sun, 20 Jun 2010 10:13:17 +0000 (10:13 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16245 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/TextWidget.java

index 4fb581019393bfd9769650c6fac207fa81da437b..af99f2f33a8f06d6e5a39a7c34e3bdfb9dd0297a 100644 (file)
@@ -72,6 +72,8 @@ public class TextWidget implements Widget {
                 public void execute(final String text) {\r
 \r
                     if(text == null) return;\r
+                    if (isDisposed())\r
+                        return;\r
 \r
                     textWidget.getDisplay().asyncExec(new Runnable() {\r
 \r
@@ -112,7 +114,7 @@ public class TextWidget implements Widget {
                 Object object = null;\r
                 triple = (Triple) ((ReadFactoryImpl)readFactory).getIdentity(null);\r
                 if(triple == null) return;\r
-                \r
+\r
                 if(!text.equals("")) {\r
                     if(readFactory instanceof DoublePropertyFactory) {\r
                         object = Double.parseDouble(text);\r