Fixing SWTException widget is disposed
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@30113
ac1ea38d-2e2b-0410-8846-
a27921b304fc
\r
@Override\r
public void run() {\r
- up.getControl().setEnabled(finalEnabled);\r
- down.getControl().setEnabled(finalEnabled);\r
- remove.getControl().setEnabled(finalEnabled); \r
+ if (!up.getControl().isDisposed())\r
+ up.getControl().setEnabled(finalEnabled);\r
+ if (!down.getControl().isDisposed())\r
+ down.getControl().setEnabled(finalEnabled);\r
+ if (!remove.getControl().isDisposed())\r
+ remove.getControl().setEnabled(finalEnabled); \r
}\r
});\r
}\r