summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManju Mathew2013-01-05 04:48:30 (EST)
committerDani Megert2013-01-05 04:48:30 (EST)
commit046ee0128866e0a27a85f295b682656c3af84b92 (patch)
tree3617e764e2ea1cf376a1cfde6662f4e62d74452e
parenta7ec327fd0ef595c2c4bf8d664efb7ad16c44b25 (diff)
downloadeclipse.jdt.ui-046ee0128866e0a27a85f295b682656c3af84b92.zip
eclipse.jdt.ui-046ee0128866e0a27a85f295b682656c3af84b92.tar.gz
eclipse.jdt.ui-046ee0128866e0a27a85f295b682656c3af84b92.tar.bz2
Fixed bug 397447: [hovering] Final code polishing for the package
Javadoc hovering feature.
-rw-r--r--org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ProposalInfo.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ProposalInfo.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ProposalInfo.java
index 013f974..51305ac 100644
--- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ProposalInfo.java
+++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/ProposalInfo.java
@@ -10,8 +10,6 @@
*******************************************************************************/
package org.eclipse.jdt.internal.ui.text.java;
-import java.io.IOException;
-
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -76,7 +74,7 @@ public class ProposalInfo {
try {
final IJavaElement javaElement= getJavaElement();
return extractJavadoc(javaElement);
- } catch (Exception e) {
+ } catch (CoreException e) {
JavaPlugin.log(e);
}
return null;
@@ -88,10 +86,8 @@ public class ProposalInfo {
* @param element the Java element to get the documentation for
* @return the Javadoc for Java element or <code>null</code> if the Javadoc is not available
* @throws CoreException if fetching the Javadoc for the given element failed connected
- * @throws IOException if an I/O error occurs while accessing the file containing the package
- * Javadoc
*/
- private String extractJavadoc(IJavaElement element) throws IOException, CoreException {
+ private String extractJavadoc(IJavaElement element) throws CoreException {
if (element instanceof IMember) {
return JavadocContentAccess2.getHTMLContent((IMember) element, true);
} else if (element instanceof IPackageDeclaration) {