langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/PackageWriterImpl.java
equal
deleted
inserted
replaced
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()))); |