src/share/classes/com/sun/tools/doclets/internal/toolkit/util/MetaKeywords.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/MetaKeywords.java	Fri Jan 18 02:48:12 2013
--- new/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/MetaKeywords.java	Fri Jan 18 02:48:12 2013

*** 1,7 **** --- 1,7 ---- /* ! * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved. ! * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 26,35 **** --- 26,36 ---- package com.sun.tools.doclets.internal.toolkit.util; import java.util.*; import com.sun.javadoc.*; + import com.sun.tools.javac.jvm.Profile; import com.sun.tools.doclets.internal.toolkit.*; /** * Provides methods for creating an array of class, method and * field names to be included as meta keywords in the HTML header
*** 102,111 **** --- 103,126 ---- } else { return new String[] {}; } } + /** + * Get the profile keywords. + * + * @param profile the profile being documented + */ + public String[] getMetaKeywords(Profile profile) { + if( configuration.keywords ) { + String profileName = profile.name; + return new String[] { profileName + " " + "profile" }; + } else { + return new String[] {}; + } + } + /** * Get the overview keywords. */ public String[] getOverviewMetaKeywords(String title, String docTitle) { if( configuration.keywords ) {

src/share/classes/com/sun/tools/doclets/internal/toolkit/util/MetaKeywords.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File