else {
return new SourceDetail(owner, annotation, defaultEncoding);
}
}
else if (link.startsWith("category.")) {
DefaultAnnotationContainer category = container.getCategory(createHashCode(link, "category."));
return createAttributeDetail(owner, category, displayName, Messages.CategoryDetail_header(), defaultEncoding);
}
else if (link.startsWith("type.")) {
DefaultAnnotationContainer type = container.getType(createHashCode(link, "type."));
return createAttributeDetail(owner, type, displayName, Messages.TypeDetail_header(), defaultEncoding);
}
return null;
}