summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManju Mathew2013-01-31 08:35:25 (EST)
committer Dani Megert2013-01-31 08:35:25 (EST)
commit52ff99eb9b2828612fe521d9d8c881b170bf8b02 (patch)
tree1634a15e57390cb8d6114e564e49618c4635ab23
parent9dbbfa2f7d38d37dfa9ba067c22d84aa5bedb6ec (diff)
downloadeclipse.jdt.ui-52ff99eb9b2828612fe521d9d8c881b170bf8b02.zip
eclipse.jdt.ui-52ff99eb9b2828612fe521d9d8c881b170bf8b02.tar.gz
eclipse.jdt.ui-52ff99eb9b2828612fe521d9d8c881b170bf8b02.tar.bz2
Fixed bug 396823: Use JavaModelUtil.isPackageInfo(ICompilationUnit) util
where applicable
-rw-r--r--org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/infoviews/JavadocView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/infoviews/JavadocView.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/infoviews/JavadocView.java
index e265b91..483e67a 100644
--- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/infoviews/JavadocView.java
+++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/infoviews/JavadocView.java
@@ -966,7 +966,7 @@ public class JavadocView extends AbstractInfoView {
case IJavaElement.COMPILATION_UNIT:
try {
IType[] types= ((ICompilationUnit) input).getTypes();
- if (types.length == 0 && JavaModelUtil.PACKAGE_INFO_JAVA.equals(input.getElementName())) {
+ if (types.length == 0 && JavaModelUtil.isPackageInfo((ICompilationUnit) input)) {
javadocHtml= getJavadocHtml(new IJavaElement[] { input.getParent() }, part, selection, monitor);
} else {
javadocHtml= getJavadocHtml(types, part, selection, monitor);