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

changeset 1740
ce4f0769b4b2
parent 1738
6ea964c78845
child 1741
4c43e51433ba
     1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java	Tue May 14 10:14:53 2013 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/HtmlDocletWriter.java	Tue May 14 10:14:53 2013 -0700
     1.3 @@ -1049,6 +1049,17 @@
     1.4       * @param label the label for the link.
     1.5       * @return a content tree for the package link.
     1.6       */
     1.7 +    public Content getPackageLink(PackageDoc pkg, String label) {
     1.8 +        return getPackageLink(pkg, new StringContent(label));
     1.9 +    }
    1.10 +
    1.11 +    /**
    1.12 +     * Return the link to the given package.
    1.13 +     *
    1.14 +     * @param pkg the package to link to.
    1.15 +     * @param label the label for the link.
    1.16 +     * @return a content tree for the package link.
    1.17 +     */
    1.18      public Content getPackageLink(PackageDoc pkg, Content label) {
    1.19          boolean included = pkg != null && pkg.isIncluded();
    1.20          if (! included) {

mercurial