summaryrefslogtreecommitdiffstats
path: root/ajdoc/src
diff options
context:
space:
mode:
authoraclement <aclement>2004-04-05 16:22:24 +0000
committeraclement <aclement>2004-04-05 16:22:24 +0000
commitb0774a8599660c15897d85f80201edce8377aada (patch)
tree8dfadad7bb04690fac4a32666c0c1a3d66088ddc /ajdoc/src
parentdd635a409c0aa6b684001027fb2af6cccbd1e7a1 (diff)
downloadaspectj-b0774a8599660c15897d85f80201edce8377aada.tar.gz
aspectj-b0774a8599660c15897d85f80201edce8377aada.zip
Fix broken links in ajdoc. Part 2 : fix links to types in other packages.
Diffstat (limited to 'ajdoc/src')
-rw-r--r--ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java b/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java
index 8b85a6761..a7f3e2b06 100644
--- a/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java
+++ b/ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java
@@ -479,7 +479,11 @@ class HtmlDecorator {
String linkName = rootDir.getAbsolutePath() + "/";
if (currDecl.getKind().isType()) {
linkName = packagePath + currDecl.getName();
- linkRef = currDecl.toLabelString() + ".html";
+ linkRef =
+ getRelativeComponent(packagePath)
+ + packagePath
+ + currDecl.toLabelString()
+ + ".html";
} else {
linkName = packagePath + currDecl.getParent().getName() + "." + currDecl.getName();
@@ -510,7 +514,8 @@ class HtmlDecorator {
/**
* Generates a relative directory path fragment that can be
- * usd to navigate "upwards".
+ * used to navigate "upwards" from the directory location
+ * implied by the argument.
* @param packagePath
* @return String consisting of multiple "../" parts, one for
* each component part of the input <code>packagePath</code>.