Author: akazakov
Date: 2011-02-09 13:16:50 -0500 (Wed, 09 Feb 2011)
New Revision: 29081
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/jsf2/JSF2ComponentsValidator.java
Log:
https://issues.jboss.org/browse/JBIDE-8377
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/jsf2/JSF2ComponentsValidator.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/jsf2/JSF2ComponentsValidator.java 2011-02-09
16:58:32 UTC (rev 29080)
+++
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/web/validation/jsf2/JSF2ComponentsValidator.java 2011-02-09
18:16:50 UTC (rev 29081)
@@ -73,8 +73,8 @@
protected boolean isValidate(IFile file) {
boolean isValidate = false;
- if (file.getProject() == null
- || file.getProject().isAccessible() == false) {
+ if (!file.isAccessible() || !file.isSynchronized(IResource.DEPTH_ZERO) ||
file.getProject() == null
+ || !file.getProject().isAccessible()) {
return false;
}
try {