langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/AbstractPackageIndexWriter.java
changeset 44879 49beafe2faf3
parent 40587 1c355ea550ed
child 45417 f7479ee8de69
equal deleted inserted replaced
44878:9dd9cf7919ff 44879:49beafe2faf3
     1 /*
     1 /*
     2  * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1998, 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
   158                     ? HtmlTree.NAV()
   158                     ? HtmlTree.NAV()
   159                     : new HtmlTree(HtmlTag.DIV);
   159                     : new HtmlTree(HtmlTag.DIV);
   160             htmlTree.addStyle(HtmlStyle.indexNav);
   160             htmlTree.addStyle(HtmlStyle.indexNav);
   161             HtmlTree ul = new HtmlTree(HtmlTag.UL);
   161             HtmlTree ul = new HtmlTree(HtmlTag.UL);
   162             addAllClassesLink(ul);
   162             addAllClassesLink(ul);
   163             if (configuration.showModules) {
   163             if (configuration.showModules  && configuration.modules.size() > 1) {
   164                 addAllModulesLink(ul);
   164                 addAllModulesLink(ul);
   165             }
   165             }
   166             htmlTree.addContent(ul);
   166             htmlTree.addContent(ul);
   167             body.addContent(htmlTree);
   167             body.addContent(htmlTree);
   168             addPackagesList(packages, text, tableSummary, body);
   168             addPackagesList(packages, text, tableSummary, body);