Author: akazakov
Date: 2012-02-01 12:32:50 -0500 (Wed, 01 Feb 2012)
New Revision: 38370
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ELValidator.java
Log:
https://issues.jboss.org/browse/JBIDE-10767
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ELValidator.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ELValidator.java 2012-02-01
15:16:45 UTC (rev 38369)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ELValidator.java 2012-02-01
17:32:50 UTC (rev 38370)
@@ -188,7 +188,7 @@
int i=0;
for (ELReference el : els) {
IResource resource = el.getResource();
- if(resource.isAccessible() && !filesToValidate.contains(resource) &&
notValidatedYet(resource)) {
+ if(resource instanceof IFile && shouldBeValidated((IFile)resource) &&
!filesToValidate.contains(resource) && notValidatedYet(resource)) {
// Don't re-validate more than 1000 ELs.
if(i++>1000) {
break;
@@ -371,9 +371,9 @@
length = propertyName.length();
}
markers++;
-
+
IJavaSourceReference reference = getJavaReference(file, startPosition, length);
-
+
if(reference != null) {
IMarker marker = addError(ELValidationMessages.UNPAIRED_GETTER_OR_SETTER,
ELSeverityPreferences.UNPAIRED_GETTER_OR_SETTER, new String[]{propertyName,
existedMethodName, missingMethodName}, reference, file);
elReference.addMarker(marker);
@@ -381,7 +381,6 @@
IMarker marker = addError(ELValidationMessages.UNPAIRED_GETTER_OR_SETTER,
ELSeverityPreferences.UNPAIRED_GETTER_OR_SETTER, new String[]{propertyName,
existedMethodName, missingMethodName}, elReference.getLineNumber(), length, startPosition,
file);
elReference.addMarker(marker);
}
-
}
}
}
@@ -413,7 +412,7 @@
}
markers++;
IJavaSourceReference reference = getJavaReference(file, offsetOfVarName,
lengthOfVarName);
-
+
IMarker marker = null;
// Mark invalid EL
if(unresolvedTokenIsVariable) {