64 * {@inheritDoc} |
64 * {@inheritDoc} |
65 */ |
65 */ |
66 public TagletOutput getDocRootOutput() { |
66 public TagletOutput getDocRootOutput() { |
67 if (htmlWriter.configuration.docrootparent.length() > 0) |
67 if (htmlWriter.configuration.docrootparent.length() > 0) |
68 return new TagletOutputImpl(htmlWriter.configuration.docrootparent); |
68 return new TagletOutputImpl(htmlWriter.configuration.docrootparent); |
|
69 else if (htmlWriter.pathToRoot.isEmpty()) |
|
70 return new TagletOutputImpl("."); |
69 else |
71 else |
70 return new TagletOutputImpl(htmlWriter.relativepathNoSlash); |
72 return new TagletOutputImpl(htmlWriter.pathToRoot.getPath()); |
71 } |
73 } |
72 |
74 |
73 /** |
75 /** |
74 * {@inheritDoc} |
76 * {@inheritDoc} |
75 */ |
77 */ |
168 } |
170 } |
169 if (holder.isField() && ((FieldDoc)holder).constantValue() != null && |
171 if (holder.isField() && ((FieldDoc)holder).constantValue() != null && |
170 htmlWriter instanceof ClassWriterImpl) { |
172 htmlWriter instanceof ClassWriterImpl) { |
171 //Automatically add link to constant values page for constant fields. |
173 //Automatically add link to constant values page for constant fields. |
172 result = addSeeHeader(result); |
174 result = addSeeHeader(result); |
173 result += htmlWriter.getHyperLinkString(htmlWriter.relativePath + |
175 result += htmlWriter.getHyperLinkString(htmlWriter.pathToRoot.resolve( |
174 ConfigurationImpl.CONSTANTS_FILE_NAME |
176 DocPaths.CONSTANT_VALUES), |
175 + "#" + ((ClassWriterImpl) htmlWriter).getClassDoc().qualifiedName() |
177 ((ClassWriterImpl) htmlWriter).getClassDoc().qualifiedName() |
176 + "." + ((FieldDoc) holder).name(), |
178 + "." + ((FieldDoc) holder).name(), |
177 htmlWriter.configuration.getText("doclet.Constants_Summary")); |
179 htmlWriter.configuration.getText("doclet.Constants_Summary"), false); |
178 } |
180 } |
179 if (holder.isClass() && ((ClassDoc)holder).isSerializable()) { |
181 if (holder.isClass() && ((ClassDoc)holder).isSerializable()) { |
180 //Automatically add link to serialized form page for serializable classes. |
182 //Automatically add link to serialized form page for serializable classes. |
181 if ((SerializedFormBuilder.serialInclude(holder) && |
183 if ((SerializedFormBuilder.serialInclude(holder) && |
182 SerializedFormBuilder.serialInclude(((ClassDoc)holder).containingPackage()))) { |
184 SerializedFormBuilder.serialInclude(((ClassDoc)holder).containingPackage()))) { |
183 result = addSeeHeader(result); |
185 result = addSeeHeader(result); |
184 result += htmlWriter.getHyperLinkString(htmlWriter.relativePath + "serialized-form.html", |
186 result += htmlWriter.getHyperLinkString(htmlWriter.pathToRoot.resolve(DocPaths.SERIALIZED_FORM), |
185 ((ClassDoc)holder).qualifiedName(), htmlWriter.configuration.getText("doclet.Serialized_Form"), false); |
187 ((ClassDoc)holder).qualifiedName(), htmlWriter.configuration.getText("doclet.Serialized_Form"), false); |
186 } |
188 } |
187 } |
189 } |
188 return result.equals("") ? null : new TagletOutputImpl(result + "</dd>"); |
190 return result.equals("") ? null : new TagletOutputImpl(result + "</dd>"); |
189 } |
191 } |