MessageDialog.openWarning(parent.getShell(), "中止",
"此传输项不允许中止!");
return;
}
try {
execution.abort();
MessageDialog.openInformation(parent.getShell(), "中止",
"中止传输项成功!");
} catch (Throwable t) {
MessageDialog.openWarning(parent.getShell(), "中止",
"中止传输项失败! 原因: " + t.getMessage());