Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfullbright2011-11-15 21:33:33 +0000
committerpfullbright2011-11-15 21:33:33 +0000
commitc4efc2bf77a07e5c8e819173a44b112792ece021 (patch)
tree409de9677c59c2989aa2ea186af333166f1e2544
parent5fc4d898781d9bda2f6ff51a8f5b79623a0d9716 (diff)
downloadwebtools.dali-c4efc2bf77a07e5c8e819173a44b112792ece021.tar.gz
webtools.dali-c4efc2bf77a07e5c8e819173a44b112792ece021.tar.xz
webtools.dali-c4efc2bf77a07e5c8e819173a44b112792ece021.zip
bug 357810 - fixed dead file calculation
-rw-r--r--jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java
index 80cc559c31..81f1e10452 100644
--- a/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java
+++ b/jpa/plugins/org.eclipse.jpt.jpa.core/src/org/eclipse/jpt/jpa/core/internal/AbstractJpaProject.java
@@ -1287,10 +1287,17 @@ public abstract class AbstractJpaProject
*/
protected boolean jpaFileIsAlive(JpaFile jpaFile) {
IFile file = jpaFile.getFile();
- return this.getJavaProject().isOnClasspath(file) &&
- file.exists();
+ if (! file.exists()) {
+ return false;
+ }
+ if (fileIsJavaRelated(file)) {
+ return getJavaProject().isOnClasspath(file);
+ }
+ else {
+ return fileResourceLocationIsValid(file);
+ }
}
-
+
/**
* pre-condition:
* delta.getElement().getElementType() == IJavaElement.JAVA_PROJECT

Back to the top