From f2d31fc2bc4aff1c1aa571f1aafedcd6ac296af2 Mon Sep 17 00:00:00 2001 From: lehtonen Date: Sun, 20 Jun 2010 10:13:17 +0000 Subject: [PATCH] Added missing isDisposed check. git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16245 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../simantics/sysdyn/ui/properties/widgets/TextWidget.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/TextWidget.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/TextWidget.java index 4fb58101..af99f2f3 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/TextWidget.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/properties/widgets/TextWidget.java @@ -72,6 +72,8 @@ public class TextWidget implements Widget { public void execute(final String text) { if(text == null) return; + if (isDisposed()) + return; textWidget.getDisplay().asyncExec(new Runnable() { @@ -112,7 +114,7 @@ public class TextWidget implements Widget { Object object = null; triple = (Triple) ((ReadFactoryImpl)readFactory).getIdentity(null); if(triple == null) return; - + if(!text.equals("")) { if(readFactory instanceof DoublePropertyFactory) { object = Double.parseDouble(text); -- 2.47.1