summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManju Mathew2013-01-22 09:46:38 (EST)
committer Dani Megert2013-01-22 09:46:38 (EST)
commit9528419f8d69d6adccd9dc68a70e733ca59b54e3 (patch)
tree8d912b854f27582944095e59acccf81bc08939ac
parentb07362bebd05c4fa6e7038aae57472cef42ba346 (diff)
downloadeclipse.jdt.ui-9528419f8d69d6adccd9dc68a70e733ca59b54e3.zip
eclipse.jdt.ui-9528419f8d69d6adccd9dc68a70e733ca59b54e3.tar.gz
eclipse.jdt.ui-9528419f8d69d6adccd9dc68a70e733ca59b54e3.tar.bz2
Fixed bug 397447: [hovering] Code polishing for the package Javadoc
hovering feature.
-rw-r--r--org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/javadoc/JavaDocLocations.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/javadoc/JavaDocLocations.java b/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/javadoc/JavaDocLocations.java
index 3f813e7..28a5480 100644
--- a/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/javadoc/JavaDocLocations.java
+++ b/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/javadoc/JavaDocLocations.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2012 IBM Corporation and others.
+ * Copyright (c) 2000, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -644,7 +644,7 @@ public class JavaDocLocations {
public static String getExplanationForMissingJavadoc(IJavaElement element, IPackageFragmentRoot root) {
String message= null;
try {
- boolean isBinary= (root.getKind() == IPackageFragmentRoot.K_BINARY);
+ boolean isBinary= (root.exists() && root.getKind() == IPackageFragmentRoot.K_BINARY);
if (isBinary) {
boolean hasAttachedJavadoc= JavaDocLocations.getJavadocBaseLocation(element) != null;
boolean hasAttachedSource= root.getSourceAttachmentPath() != null;