提交 1dbddbe8 编写于 作者: S serge-rider

Monitor logging fix

上级 7856f2cc
......@@ -247,6 +247,7 @@ public abstract class AttributesSelectorPage extends BaseObjectEditPage {
AbstractJob loadJob = new AbstractJob("Load entity attributes") {
@Override
protected IStatus run(DBRProgressMonitor monitor) {
monitor.beginTask("Load attributes", 1);
try {
for (DBSEntityAttribute attr : CommonUtils.safeCollection(entity.getAttributes(monitor))) {
if (isShowHiddenAttributes() || !DBUtils.isHiddenObject(attr) || DBUtils.isRowIdAttribute(attr)) {
......@@ -255,6 +256,8 @@ public abstract class AttributesSelectorPage extends BaseObjectEditPage {
}
} catch (DBException e) {
return GeneralUtils.makeErrorStatus("Error loading attributes", e);
} finally {
monitor.done();
}
return Status.OK_STATUS;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册