1 /* |
1 /* |
2 * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2002, 2013, 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 |
26 package com.sun.tools.doclets.internal.toolkit.util; |
26 package com.sun.tools.doclets.internal.toolkit.util; |
27 |
27 |
28 import java.util.*; |
28 import java.util.*; |
29 |
29 |
30 import com.sun.javadoc.*; |
30 import com.sun.javadoc.*; |
|
31 import com.sun.tools.javac.jvm.Profile; |
31 import com.sun.tools.doclets.internal.toolkit.*; |
32 import com.sun.tools.doclets.internal.toolkit.*; |
32 |
33 |
33 /** |
34 /** |
34 * Provides methods for creating an array of class, method and |
35 * Provides methods for creating an array of class, method and |
35 * field names to be included as meta keywords in the HTML header |
36 * field names to be included as meta keywords in the HTML header |
103 return new String[] {}; |
104 return new String[] {}; |
104 } |
105 } |
105 } |
106 } |
106 |
107 |
107 /** |
108 /** |
|
109 * Get the profile keywords. |
|
110 * |
|
111 * @param profile the profile being documented |
|
112 */ |
|
113 public String[] getMetaKeywords(Profile profile) { |
|
114 if( configuration.keywords ) { |
|
115 String profileName = profile.name; |
|
116 return new String[] { profileName + " " + "profile" }; |
|
117 } else { |
|
118 return new String[] {}; |
|
119 } |
|
120 } |
|
121 |
|
122 /** |
108 * Get the overview keywords. |
123 * Get the overview keywords. |
109 */ |
124 */ |
110 public String[] getOverviewMetaKeywords(String title, String docTitle) { |
125 public String[] getOverviewMetaKeywords(String title, String docTitle) { |
111 if( configuration.keywords ) { |
126 if( configuration.keywords ) { |
112 String windowOverview = configuration.getText(title); |
127 String windowOverview = configuration.getText(title); |