langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/ClassWriterImpl.java
equal
deleted
inserted
replaced
197 PackageElement pkg = utils.containingPackage(typeElement); |
197 PackageElement pkg = utils.containingPackage(typeElement); |
198 if (!pkg.isUnnamed()) { |
198 if (!pkg.isUnnamed()) { |
199 Content classPackageLabel = HtmlTree.SPAN(HtmlStyle.packageLabelInClass, packageLabel); |
199 Content classPackageLabel = HtmlTree.SPAN(HtmlStyle.packageLabelInClass, packageLabel); |
200 Content pkgNameDiv = HtmlTree.DIV(HtmlStyle.subTitle, classPackageLabel); |
200 Content pkgNameDiv = HtmlTree.DIV(HtmlStyle.subTitle, classPackageLabel); |
201 pkgNameDiv.addContent(getSpace()); |
201 pkgNameDiv.addContent(getSpace()); |
202 Content pkgNameContent = getPackageLink(pkg, |
202 Content pkgNameContent = getPackageLink(pkg, new StringContent(pkg.getQualifiedName())); |
203 new StringContent(pkg.getQualifiedName().toString())); |
|
204 pkgNameDiv.addContent(pkgNameContent); |
203 pkgNameDiv.addContent(pkgNameContent); |
205 div.addContent(pkgNameDiv); |
204 div.addContent(pkgNameDiv); |
206 } |
205 } |
207 LinkInfoImpl linkInfo = new LinkInfoImpl(configuration, |
206 LinkInfoImpl linkInfo = new LinkInfoImpl(configuration, |
208 LinkInfoImpl.Kind.CLASS_HEADER, typeElement); |
207 LinkInfoImpl.Kind.CLASS_HEADER, typeElement); |
393 if (type.equals(typeElement.asType())) { |
392 if (type.equals(typeElement.asType())) { |
394 Content typeParameters = getTypeParameterLinks( |
393 Content typeParameters = getTypeParameterLinks( |
395 new LinkInfoImpl(configuration, LinkInfoImpl.Kind.TREE, |
394 new LinkInfoImpl(configuration, LinkInfoImpl.Kind.TREE, |
396 typeElement)); |
395 typeElement)); |
397 if (configuration.shouldExcludeQualifier(utils.containingPackage(typeElement).toString())) { |
396 if (configuration.shouldExcludeQualifier(utils.containingPackage(typeElement).toString())) { |
398 li.addContent(utils.asTypeElement(type).getSimpleName().toString()); |
397 li.addContent(utils.asTypeElement(type).getSimpleName()); |
399 li.addContent(typeParameters); |
398 li.addContent(typeParameters); |
400 } else { |
399 } else { |
401 li.addContent(utils.asTypeElement(type).getQualifiedName().toString()); |
400 li.addContent(utils.asTypeElement(type).getQualifiedName()); |
402 li.addContent(typeParameters); |
401 li.addContent(typeParameters); |
403 } |
402 } |
404 } else { |
403 } else { |
405 Content link = getLink(new LinkInfoImpl(configuration, |
404 Content link = getLink(new LinkInfoImpl(configuration, |
406 LinkInfoImpl.Kind.CLASS_TREE_PARENT, type) |
405 LinkInfoImpl.Kind.CLASS_TREE_PARENT, type) |