1 /* |
1 /* |
2 * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2013, 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 |
113 * Generate a separate tree file for each package. |
113 * Generate a separate tree file for each package. |
114 */ |
114 */ |
115 protected void generatePackageTreeFile() throws IOException { |
115 protected void generatePackageTreeFile() throws IOException { |
116 Content body = getPackageTreeHeader(); |
116 Content body = getPackageTreeHeader(); |
117 Content headContent = getResource("doclet.Hierarchy_For_Package", |
117 Content headContent = getResource("doclet.Hierarchy_For_Package", |
118 Util.getPackageName(packagedoc)); |
118 Util.escapeHtmlChars(Util.getPackageName(packagedoc))); |
119 Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, false, |
119 Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, false, |
120 HtmlStyle.title, headContent); |
120 HtmlStyle.title, headContent); |
121 Content div = HtmlTree.DIV(HtmlStyle.header, heading); |
121 Content div = HtmlTree.DIV(HtmlStyle.header, heading); |
122 if (configuration.packages.length > 1) { |
122 if (configuration.packages.length > 1) { |
123 addLinkToMainTree(div); |
123 addLinkToMainTree(div); |