langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/PackageWriterImpl.java
changeset 44196 f88c0e9cb102
parent 42824 89b14017e8d6
child 45417 f7479ee8de69
equal deleted inserted replaced
44195:5860769fe2f4 44196:f88c0e9cb102
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   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         if (configuration.showModules) {
   128         if (configuration.showModules) {
   129             ModuleElement mdle = configuration.docEnv.getElementUtils().getModuleOf(packageElement);
   129             ModuleElement mdle = configuration.docEnv.getElementUtils().getModuleOf(packageElement);
   130             Content classModuleLabel = HtmlTree.SPAN(HtmlStyle.moduleLabelInClass, contents.moduleLabel);
   130             Content classModuleLabel = HtmlTree.SPAN(HtmlStyle.moduleLabelInPackage, 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())));
   135             div.addContent(moduleNameDiv);
   135             div.addContent(moduleNameDiv);