提交 4b3974ca 编写于 作者: S Serge Rider

async exec error handle


Former-commit-id: 302a9f33
上级 d421b6c8
......@@ -1510,7 +1510,10 @@ public class UIUtils {
public static void asyncExec(Runnable runnable) {
try {
getDisplay().asyncExec(runnable);
Display display = getDisplay();
if (!display.isDisposed()) {
display.asyncExec(runnable);
}
} catch (Exception e) {
log.debug(e);
}
......@@ -1518,7 +1521,10 @@ public class UIUtils {
public static void syncExec(Runnable runnable) {
try {
getDisplay().syncExec(runnable);
Display display = getDisplay();
if (!display.isDisposed()) {
display.syncExec(runnable);
}
} catch (Exception e) {
log.debug(e);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册