langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/PackageWriterImpl.java
changeset 42824 89b14017e8d6
parent 42816 3638773ff1b0
child 44196 f88c0e9cb102
equal deleted inserted replaced
42823:58864b03c7b9 42824:89b14017e8d6
   123         if (configuration.allowTag(HtmlTag.HEADER)) {
   123         if (configuration.allowTag(HtmlTag.HEADER)) {
   124             bodyTree.addContent(htmlTree);
   124             bodyTree.addContent(htmlTree);
   125         }
   125         }
   126         HtmlTree div = new HtmlTree(HtmlTag.DIV);
   126         HtmlTree div = new HtmlTree(HtmlTag.DIV);
   127         div.addStyle(HtmlStyle.header);
   127         div.addStyle(HtmlStyle.header);
   128         ModuleElement mdle = configuration.docEnv.getElementUtils().getModuleOf(packageElement);
       
   129         if (configuration.showModules) {
   128         if (configuration.showModules) {
       
   129             ModuleElement mdle = configuration.docEnv.getElementUtils().getModuleOf(packageElement);
   130             Content classModuleLabel = HtmlTree.SPAN(HtmlStyle.moduleLabelInClass, contents.moduleLabel);
   130             Content classModuleLabel = HtmlTree.SPAN(HtmlStyle.moduleLabelInClass, contents.moduleLabel);
   131             Content moduleNameDiv = HtmlTree.DIV(HtmlStyle.subTitle, classModuleLabel);
   131             Content moduleNameDiv = HtmlTree.DIV(HtmlStyle.subTitle, classModuleLabel);
   132             moduleNameDiv.addContent(Contents.SPACE);
   132             moduleNameDiv.addContent(Contents.SPACE);
   133             moduleNameDiv.addContent(getModuleLink(mdle,
   133             moduleNameDiv.addContent(getModuleLink(mdle,
   134                     new StringContent(mdle.getQualifiedName().toString())));
   134                     new StringContent(mdle.getQualifiedName().toString())));