langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/ModuleWriterImpl.java
changeset 41452 ddaef4bba083
parent 41157 b235a429089a
child 42407 f3702cff2933
equal deleted inserted replaced
41451:a847c7aa25a7 41452:ddaef4bba083
   482 
   482 
   483     /**
   483     /**
   484      * {@inheritDoc}
   484      * {@inheritDoc}
   485      */
   485      */
   486     public void addModuleDescription(Content moduleContentTree) {
   486     public void addModuleDescription(Content moduleContentTree) {
   487         if (!utils.getBody(mdle).isEmpty()) {
   487         if (!utils.getFullBody(mdle).isEmpty()) {
   488             Content tree = configuration.allowTag(HtmlTag.SECTION) ? HtmlTree.SECTION() : moduleContentTree;
   488             Content tree = configuration.allowTag(HtmlTag.SECTION) ? HtmlTree.SECTION() : moduleContentTree;
   489             tree.addContent(HtmlConstants.START_OF_MODULE_DESCRIPTION);
   489             tree.addContent(HtmlConstants.START_OF_MODULE_DESCRIPTION);
   490             tree.addContent(getMarkerAnchor(SectionName.MODULE_DESCRIPTION));
   490             tree.addContent(getMarkerAnchor(SectionName.MODULE_DESCRIPTION));
   491             addInlineComment(mdle, tree);
   491             addInlineComment(mdle, tree);
   492             if (configuration.allowTag(HtmlTag.SECTION)) {
   492             if (configuration.allowTag(HtmlTag.SECTION)) {
   526     protected Content getNavSummaryLinks() {
   526     protected Content getNavSummaryLinks() {
   527         Content li = HtmlTree.LI(contents.moduleSubNavLabel);
   527         Content li = HtmlTree.LI(contents.moduleSubNavLabel);
   528         li.addContent(Contents.SPACE);
   528         li.addContent(Contents.SPACE);
   529         Content ulNav = HtmlTree.UL(HtmlStyle.subNavList, li);
   529         Content ulNav = HtmlTree.UL(HtmlStyle.subNavList, li);
   530         Content liNav = new HtmlTree(HtmlTag.LI);
   530         Content liNav = new HtmlTree(HtmlTag.LI);
   531         liNav.addContent(!utils.getBody(mdle).isEmpty() && !configuration.nocomment
   531         liNav.addContent(!utils.getFullBody(mdle).isEmpty() && !configuration.nocomment
   532                 ? getHyperLink(SectionName.MODULE_DESCRIPTION, contents.navModuleDescription)
   532                 ? getHyperLink(SectionName.MODULE_DESCRIPTION, contents.navModuleDescription)
   533                 : contents.navModuleDescription);
   533                 : contents.navModuleDescription);
   534         addNavGap(liNav);
   534         addNavGap(liNav);
   535         liNav.addContent(showDirectives(DirectiveKind.REQUIRES)
   535         liNav.addContent(showDirectives(DirectiveKind.REQUIRES)
   536                 ? getHyperLink(SectionName.MODULES, contents.navModules)
   536                 ? getHyperLink(SectionName.MODULES, contents.navModules)