Author: akazakov
Date: 2012-02-16 20:41:09 -0500 (Thu, 16 Feb 2012)
New Revision: 38853
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-10738 As-you-type EL validation
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-17
01:40:25 UTC (rev 38852)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/validation/ELValidator.java 2012-02-17
01:41:09 UTC (rev 38853)
@@ -254,6 +254,7 @@
this.document = validationContext.getDocument();
ELContext elContext =
PageContextFactory.createPageContext(validationContext.getDocument(), true);
Set<ELReference> references = elContext.getELReferences(dirtyRegion);
+
for (ELReference elReference : references) {
validateEL(elReference, true, elContext);
}
@@ -285,7 +286,10 @@
displaySubtask(ELValidationMessages.VALIDATING_EL_FILE, new
String[]{el.getResource().getProject().getName(), el.getResource().getName()});
if(!asYouType) {
el.deleteMarkers();
+ } else {
+ disableProblemAnnotations(el);
}
+
if(context!=null && !el.getSyntaxErrors().isEmpty()) {
for (SyntaxError error: el.getSyntaxErrors()) {
markers++;