Author: bbrodt
Date: 2011-02-04 15:17:34 -0500 (Fri, 04 Feb 2011)
New Revision: 29023
Modified:
trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/rules/Factory.java
Log:
https://issues.jboss.org/browse/JBIDE-6825
Modified:
trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/rules/Factory.java
===================================================================
---
trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/rules/Factory.java 2011-02-04
20:14:38 UTC (rev 29022)
+++
trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/rules/Factory.java 2011-02-04
20:17:34 UTC (rev 29023)
@@ -47,13 +47,19 @@
public Validator create(QName qname) {
- // Bugzilla 324165
- //
https://issues.jboss.org/browse/JBIDE-6825
- // handle unknown BPEL elements
- Validator validator = createValidator ( qname.getLocalPart() );
- if (validator==null)
- validator = new UnknownElementValidator();
- return validator;
+ String nsURI = qname.getNamespaceURI();
+
+ if (nsURI.equals(IConstants.XMLNS_BPEL) || nsURI.equals(IConstants.XMLNS_BPEL20_OLD))
{
+ // Bugzilla 324165
+ //
https://issues.jboss.org/browse/JBIDE-6825
+ // handle unknown BPEL elements
+ Validator validator = createValidator ( qname.getLocalPart() );
+ if (validator==null)
+ validator = new UnknownElementValidator();
+ return validator;
+ }
+
+ return null;
}
@SuppressWarnings("nls")