Search in sources :

Example 1 with RemainingSections

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;
}
Also used : AnnotatedToolModel(org.eclipse.ceylon.common.tool.AnnotatedToolModel) RemainingSections(org.eclipse.ceylon.common.tool.RemainingSections) ResourceBundle(java.util.ResourceBundle)

Aggregations

ResourceBundle (java.util.ResourceBundle)1 AnnotatedToolModel (org.eclipse.ceylon.common.tool.AnnotatedToolModel)1 RemainingSections (org.eclipse.ceylon.common.tool.RemainingSections)1