langtools/src/share/classes/com/sun/tools/doclets/formats/html/ProfileWriterImpl.java
changeset 25454 376a52c9540c
parent 21478 fa4c7cda1b41
equal deleted inserted replaced
25453:be80cf0463b3 25454:376a52c9540c
     1 /*
     1 /*
     2  * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2014, 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
    24  */
    24  */
    25 
    25 
    26 package com.sun.tools.doclets.formats.html;
    26 package com.sun.tools.doclets.formats.html;
    27 
    27 
    28 import java.io.*;
    28 import java.io.*;
    29 import java.util.*;
       
    30 
    29 
    31 import com.sun.javadoc.*;
    30 import com.sun.javadoc.*;
    32 import com.sun.tools.javac.jvm.Profile;
    31 import com.sun.tools.javac.jvm.Profile;
    33 import com.sun.tools.doclets.formats.html.markup.*;
    32 import com.sun.tools.doclets.formats.html.markup.*;
    34 import com.sun.tools.doclets.internal.toolkit.*;
    33 import com.sun.tools.doclets.internal.toolkit.*;
   181      * @param li the content tree to which the deprecation information will be added
   180      * @param li the content tree to which the deprecation information will be added
   182      * @param pkg the PackageDoc that is added
   181      * @param pkg the PackageDoc that is added
   183      */
   182      */
   184     public void addPackageDeprecationInfo(Content li, PackageDoc pkg) {
   183     public void addPackageDeprecationInfo(Content li, PackageDoc pkg) {
   185         Tag[] deprs;
   184         Tag[] deprs;
   186         if (Util.isDeprecated(pkg)) {
   185         if (utils.isDeprecated(pkg)) {
   187             deprs = pkg.tags("deprecated");
   186             deprs = pkg.tags("deprecated");
   188             HtmlTree deprDiv = new HtmlTree(HtmlTag.DIV);
   187             HtmlTree deprDiv = new HtmlTree(HtmlTag.DIV);
   189             deprDiv.addStyle(HtmlStyle.deprecatedContent);
   188             deprDiv.addStyle(HtmlStyle.deprecatedContent);
   190             Content deprPhrase = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase);
   189             Content deprPhrase = HtmlTree.SPAN(HtmlStyle.deprecatedLabel, deprecatedPhrase);
   191             deprDiv.addContent(deprPhrase);
   190             deprDiv.addContent(deprPhrase);