Parcourir la source

Fix broken links in ajdoc.

tags/Root_ajdt_support
aclement il y a 20 ans
Parent
révision
806b737230
1 fichiers modifiés avec 28 ajouts et 2 suppressions
  1. 28
    2
      ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java

+ 28
- 2
ajdoc/src/org/aspectj/tools/ajdoc/HtmlDecorator.java Voir le fichier

@@ -483,7 +483,13 @@ class HtmlDecorator {
} else {
linkName = packagePath + currDecl.getParent().getName() + "." + currDecl.getName();
linkRef = currDecl.getParent().getName() + ".html" + "#" + currDecl.toLabelString();
linkRef =
getRelativeComponent(packagePath)
+ packagePath
+ currDecl.getParent().getName()
+ ".html"
+ "#"
+ currDecl.toLabelString();
//
// XXX: only one level of nested classes
if (currDecl.getParent().getParent().getKind().isType()) {
@@ -502,7 +508,27 @@ class HtmlDecorator {
return entry;
}

static String generateIntroductionSignatures(IProgramElement decl, boolean isDetails) {
/**
* Generates a relative directory path fragment that can be
* usd to navigate "upwards".
* @param packagePath
* @return String consisting of multiple "../" parts, one for
* each component part of the input <code>packagePath</code>.
*/
private static String getRelativeComponent(String packagePath) {
StringBuffer result = new StringBuffer("");
if (packagePath != null) {
StringTokenizer sTok = new StringTokenizer(packagePath, "/", false);
while (sTok.hasMoreTokens()) {
sTok.nextToken(); // don't care about the token value
result.append(".." + Config.DIR_SEP_CHAR);
}// end while
}// end if
return result.toString();
}

static String generateIntroductionSignatures(IProgramElement decl, boolean isDetails) {
return "<not implemented>";
// Declaration[] decls = decl.getDeclarations();
// String entry = "";

Chargement…
Annuler
Enregistrer