# HG changeset patch # User jjg # Date 1531512036 25200 # Node ID a602706ccaaada0d4dec8de1fbcdb9ad2cf6a4cd # Parent adc4d3fd4095fa7dfafacaba7d87162906499506 8207213: The help-doc.html generated by the doclet is incomplete Reviewed-by: hannesw diff -r adc4d3fd4095 -r a602706ccaaa src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HelpWriter.java --- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HelpWriter.java Fri Jul 13 11:13:34 2018 -0700 +++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HelpWriter.java Fri Jul 13 13:00:36 2018 -0700 @@ -440,6 +440,21 @@ ul.addContent(htmlTree); } + // Search + Content searchHead = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, + contents.getContent("doclet.help.search.head")); + htmlTree = (configuration.allowTag(HtmlTag.SECTION)) + ? HtmlTree.SECTION(searchHead) + : HtmlTree.LI(HtmlStyle.blockList, searchHead); + Content searchBody = contents.getContent("doclet.help.search.body"); + Content searchPara = HtmlTree.P(searchBody); + htmlTree.addContent(searchPara); + if (configuration.allowTag(HtmlTag.SECTION)) { + ul.addContent(HtmlTree.LI(HtmlStyle.blockList, htmlTree)); + } else { + ul.addContent(htmlTree); + } + Content divContent = HtmlTree.DIV(HtmlStyle.contentContainer, ul); divContent.addContent(new HtmlTree(HtmlTag.HR)); Content footnote = HtmlTree.SPAN(HtmlStyle.emphasizedPhrase, diff -r adc4d3fd4095 -r a602706ccaaa src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/standard.properties --- a/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/standard.properties Fri Jul 13 11:13:34 2018 -0700 +++ b/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/resources/standard.properties Fri Jul 13 13:00:36 2018 -0700 @@ -194,6 +194,10 @@ Annotation Type Declaration doclet.help.annotation_type.description=\ Annotation Type Description +doclet.help.search.head=Search +doclet.help.search.body=You can search for definitions of modules, packages, types, fields, methods \ + and other terms defined in the API, using some or all of the name. "Camel-case" abbreviations \ + are supported: for example, "InpStr" will find "InputStream" and "InputStreamReader". doclet.ClassUse_Packages.that.use.0=Packages that use {0} doclet.ClassUse_Uses.of.0.in.1=Uses of {0} in {1}