src/share/classes/com/sun/tools/doclets/internal/toolkit/util/MetaKeywords.java

changeset 1568
5f0731e4e5e6
parent 1359
25e14ad23cef
child 2525
2eb010b6cb22
     1.1 --- a/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/MetaKeywords.java	Wed Jan 16 12:00:21 2013 -0800
     1.2 +++ b/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/MetaKeywords.java	Mon Jan 21 00:45:35 2013 -0500
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -28,6 +28,7 @@
    1.11  import java.util.*;
    1.12  
    1.13  import com.sun.javadoc.*;
    1.14 +import com.sun.tools.javac.jvm.Profile;
    1.15  import com.sun.tools.doclets.internal.toolkit.*;
    1.16  
    1.17  /**
    1.18 @@ -105,6 +106,20 @@
    1.19      }
    1.20  
    1.21      /**
    1.22 +     * Get the profile keywords.
    1.23 +     *
    1.24 +     * @param profile the profile being documented
    1.25 +     */
    1.26 +    public String[] getMetaKeywords(Profile profile) {
    1.27 +        if( configuration.keywords ) {
    1.28 +            String profileName = profile.name;
    1.29 +            return new String[] { profileName + " " + "profile" };
    1.30 +        } else {
    1.31 +            return new String[] {};
    1.32 +        }
    1.33 +    }
    1.34 +
    1.35 +    /**
    1.36       * Get the overview keywords.
    1.37       */
    1.38      public String[] getOverviewMetaKeywords(String title, String docTitle) {

mercurial