src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java

changeset 1372
78962d89f283
parent 1359
25e14ad23cef
child 1373
4a1c57a1c410
equal deleted inserted replaced
1366:12cf6bfd8c05 1372:78962d89f283
34 import com.sun.tools.doclets.internal.toolkit.util.*; 34 import com.sun.tools.doclets.internal.toolkit.util.*;
35 35
36 /** 36 /**
37 * Generate the package index page "overview-summary.html" for the right-hand 37 * Generate the package index page "overview-summary.html" for the right-hand
38 * frame. A click on the package name on this page will update the same frame 38 * frame. A click on the package name on this page will update the same frame
39 * with the "pacakge-summary.html" file for the clicked package. 39 * with the "package-summary.html" file for the clicked package.
40 * 40 *
41 * <p><b>This is NOT part of any supported API. 41 * <p><b>This is NOT part of any supported API.
42 * If you write code that depends on this, you do so at your own risk. 42 * If you write code that depends on this, you do so at your own risk.
43 * This code and its internal interfaces are subject to change or 43 * This code and its internal interfaces are subject to change or
44 * deletion without notice.</b> 44 * deletion without notice.</b>
71 * the order of groups specified by the user. 71 * the order of groups specified by the user.
72 * 72 *
73 * @see Group 73 * @see Group
74 */ 74 */
75 public PackageIndexWriter(ConfigurationImpl configuration, 75 public PackageIndexWriter(ConfigurationImpl configuration,
76 String filename) 76 DocPath filename)
77 throws IOException { 77 throws IOException {
78 super(configuration, filename); 78 super(configuration, filename);
79 this.root = configuration.root; 79 this.root = configuration.root;
80 groupPackageMap = configuration.group.groupPackages(packages); 80 groupPackageMap = configuration.group.groupPackages(packages);
81 groupList = configuration.group.getGroupList(); 81 groupList = configuration.group.getGroupList();
86 * 86 *
87 * @param configuration the current configuration of the doclet. 87 * @param configuration the current configuration of the doclet.
88 */ 88 */
89 public static void generate(ConfigurationImpl configuration) { 89 public static void generate(ConfigurationImpl configuration) {
90 PackageIndexWriter packgen; 90 PackageIndexWriter packgen;
91 String filename = "overview-summary.html"; 91 DocPath filename = DocPaths.OVERVIEW_SUMMARY;
92 try { 92 try {
93 packgen = new PackageIndexWriter(configuration, filename); 93 packgen = new PackageIndexWriter(configuration, filename);
94 packgen.buildPackageIndexFile("doclet.Window_Overview_Summary", true); 94 packgen.buildPackageIndexFile("doclet.Window_Overview_Summary", true);
95 packgen.close(); 95 packgen.close();
96 } catch (IOException exc) { 96 } catch (IOException exc) {

mercurial