|
Lines 30-35
Link Here
|
| 30 |
import java.util.zip.ZipEntry; |
30 |
import java.util.zip.ZipEntry; |
| 31 |
import java.util.zip.ZipFile; |
31 |
import java.util.zip.ZipFile; |
| 32 |
|
32 |
|
|
|
33 |
import org.eclipse.core.runtime.Assert; |
| 33 |
import org.eclipse.core.runtime.CoreException; |
34 |
import org.eclipse.core.runtime.CoreException; |
| 34 |
import org.eclipse.core.runtime.IPath; |
35 |
import org.eclipse.core.runtime.IPath; |
| 35 |
import org.eclipse.core.runtime.IStatus; |
36 |
import org.eclipse.core.runtime.IStatus; |
|
Lines 456-461
Link Here
|
| 456 |
private HashMap<String, StringBuffer> fExceptionDescriptions; |
457 |
private HashMap<String, StringBuffer> fExceptionDescriptions; |
| 457 |
|
458 |
|
| 458 |
private JavadocContentAccess2(IMethod method, Javadoc javadoc, String source, JavadocLookup lookup) { |
459 |
private JavadocContentAccess2(IMethod method, Javadoc javadoc, String source, JavadocLookup lookup) { |
|
|
460 |
Assert.isNotNull(method); |
| 459 |
fMember= method; |
461 |
fMember= method; |
| 460 |
fMethod= method; |
462 |
fMethod= method; |
| 461 |
fJavadoc= javadoc; |
463 |
fJavadoc= javadoc; |
|
Lines 464-469
Link Here
|
| 464 |
} |
466 |
} |
| 465 |
|
467 |
|
| 466 |
private JavadocContentAccess2(IMember member, Javadoc javadoc, String source) { |
468 |
private JavadocContentAccess2(IMember member, Javadoc javadoc, String source) { |
|
|
469 |
Assert.isNotNull(member); |
| 467 |
fMember= member; |
470 |
fMember= member; |
| 468 |
fMethod= null; |
471 |
fMethod= null; |
| 469 |
fJavadoc= javadoc; |
472 |
fJavadoc= javadoc; |
|
Lines 1723-1729
Link Here
|
| 1723 |
for (int i= commentList.size() - 1; i >= 0; i--) { |
1726 |
for (int i= commentList.size() - 1; i >= 0; i--) { |
| 1724 |
Comment comment= commentList.get(i); |
1727 |
Comment comment= commentList.get(i); |
| 1725 |
if (comment instanceof Javadoc) { |
1728 |
if (comment instanceof Javadoc) { |
| 1726 |
JavadocContentAccess2 docacc= new JavadocContentAccess2(null, (Javadoc) comment, source); |
1729 |
IType type= null; |
|
|
1730 |
IJavaElement javaElement= ast.getJavaElement(); |
| 1731 |
if (javaElement instanceof ICompilationUnit) { |
| 1732 |
type= ((ICompilationUnit) javaElement).getType(JavaModelUtil.PACKAGE_INFO_JAVA); |
| 1733 |
} else if (javaElement instanceof IClassFile) { |
| 1734 |
type= ((IClassFile) javaElement).getType(); |
| 1735 |
} |
| 1736 |
JavadocContentAccess2 docacc= new JavadocContentAccess2(type, (Javadoc) comment, source); |
| 1727 |
return docacc.toHTML(); |
1737 |
return docacc.toHTML(); |
| 1728 |
} |
1738 |
} |
| 1729 |
} |
1739 |
} |