src/share/classes/com/sun/tools/doclets/formats/html/ClassWriterImpl.java

changeset 958
734144b6b22f
parent 943
72bdd232e0ea
child 1357
c75be5bc5283
equal deleted inserted replaced
957:46d720734db3 958:734144b6b22f
226 pre.addContent(modifiers); 226 pre.addContent(modifiers);
227 LinkInfoImpl linkInfo = new LinkInfoImpl( 227 LinkInfoImpl linkInfo = new LinkInfoImpl(
228 LinkInfoImpl.CONTEXT_CLASS_SIGNATURE, classDoc, false); 228 LinkInfoImpl.CONTEXT_CLASS_SIGNATURE, classDoc, false);
229 //Let's not link to ourselves in the signature. 229 //Let's not link to ourselves in the signature.
230 linkInfo.linkToSelf = false; 230 linkInfo.linkToSelf = false;
231 Content name = new RawHtml (classDoc.name() + 231 Content className = new StringContent(classDoc.name());
232 getTypeParameterLinks(linkInfo)); 232 Content parameterLinks = new RawHtml(getTypeParameterLinks(linkInfo));
233 if (configuration().linksource) { 233 if (configuration().linksource) {
234 addSrcLink(classDoc, name, pre); 234 addSrcLink(classDoc, className, pre);
235 pre.addContent(parameterLinks);
235 } else { 236 } else {
236 pre.addContent(HtmlTree.STRONG(name)); 237 Content span = HtmlTree.SPAN(HtmlStyle.strong, className);
238 span.addContent(parameterLinks);
239 pre.addContent(span);
237 } 240 }
238 if (!isInterface) { 241 if (!isInterface) {
239 Type superclass = Util.getFirstVisibleSuperClass(classDoc, 242 Type superclass = Util.getFirstVisibleSuperClass(classDoc,
240 configuration()); 243 configuration());
241 if (superclass != null) { 244 if (superclass != null) {

mercurial