langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/PackageUseWriter.java
equal
deleted
inserted
replaced
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 |
62 /** |
62 /** |
63 * Constructor. |
63 * Constructor. |
64 * |
64 * |
65 * @param filename the file to be generated. |
65 * @param filename the file to be generated. |
66 */ |
66 */ |
67 public PackageUseWriter(ConfigurationImpl configuration, |
67 public PackageUseWriter(HtmlConfiguration configuration, |
68 ClassUseMapper mapper, DocPath filename, |
68 ClassUseMapper mapper, DocPath filename, |
69 PackageElement pkgElement) { |
69 PackageElement pkgElement) { |
70 super(configuration, DocPath.forPackage(pkgElement).resolve(filename)); |
70 super(configuration, DocPath.forPackage(pkgElement).resolve(filename)); |
71 this.packageElement = pkgElement; |
71 this.packageElement = pkgElement; |
72 |
72 |
97 * @param configuration the current configuration of the doclet. |
97 * @param configuration the current configuration of the doclet. |
98 * @param mapper the mapping of the class usage. |
98 * @param mapper the mapping of the class usage. |
99 * @param pkgElement the package being documented. |
99 * @param pkgElement the package being documented. |
100 * @throws DocFileIOException if there is a problem generating the package use page |
100 * @throws DocFileIOException if there is a problem generating the package use page |
101 */ |
101 */ |
102 public static void generate(ConfigurationImpl configuration, |
102 public static void generate(HtmlConfiguration configuration, |
103 ClassUseMapper mapper, PackageElement pkgElement) |
103 ClassUseMapper mapper, PackageElement pkgElement) |
104 throws DocFileIOException { |
104 throws DocFileIOException { |
105 DocPath filename = DocPaths.PACKAGE_USE; |
105 DocPath filename = DocPaths.PACKAGE_USE; |
106 PackageUseWriter pkgusegen = new PackageUseWriter(configuration, mapper, filename, pkgElement); |
106 PackageUseWriter pkgusegen = new PackageUseWriter(configuration, mapper, filename, pkgElement); |
107 pkgusegen.generatePackageUseFile(); |
107 pkgusegen.generatePackageUseFile(); |