提交 1ec6935e 编写于 作者: S Serge Rider

#1817 Generate SQL: show info if not available


Former-commit-id: 7e1a9f67
上级 38d92750
......@@ -317,6 +317,15 @@ public class GenerateSQLContributor extends CompoundContributionItem {
}
}));
}
} else {
//if (dataContainer != null && !visibleAttributes.isEmpty() && entity != null)
String message = dataContainer == null ? "no data container" :
(visibleAttributes.isEmpty() ? "empty attribute list" :
(entity == null ? "can't resolve table" : ""));
Action disabledAction = new Action("Not available - " + message) {
};
disabledAction.setEnabled(false);
menu.add(new ActionContributionItem(disabledAction));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册