use of org.eclipse.ceylon.common.tool.RemainingSections in project ceylon by eclipse.
the class DocBuilder method getSections.
private String getSections(ToolModel<?> model) {
if (!(model instanceof AnnotatedToolModel))
return null;
AnnotatedToolModel<?> amodel = (AnnotatedToolModel<?>) model;
ResourceBundle toolBundle = getToolBundle(model);
String msg = msg(toolBundle, "sections.remaining");
if (msg.isEmpty()) {
RemainingSections sections = amodel.getToolClass().getAnnotation(RemainingSections.class);
if (sections != null) {
msg = sections.value();
}
}
return msg;
}
Aggregations