Author: scabanovich
Date: 2010-07-20 10:23:32 -0400 (Tue, 20 Jul 2010)
New Revision: 23598
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/SeamComponentsEntityRecognizer.java
Log:
https://jira.jboss.org/browse/JBIDE-6610
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/SeamComponentsEntityRecognizer.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/SeamComponentsEntityRecognizer.java 2010-07-20
14:22:38 UTC (rev 23597)
+++
trunk/seam/plugins/org.jboss.tools.seam.xml/src/org/jboss/tools/seam/xml/components/model/SeamComponentsEntityRecognizer.java 2010-07-20
14:23:32 UTC (rev 23598)
@@ -40,7 +40,8 @@
if(PUBLIC_ID_11.equals(publicId)) return ENT_SEAM_COMPONENTS_11;
return null;
}
- if(!isComponentsSchema(body)) {
+ boolean isSingleComponent = isSingleComponent(body);
+ if(!isComponentsSchema(body) && !isSingleComponent) {
return null;
}
@@ -51,7 +52,6 @@
int k = body.indexOf("\"", j + 1); //$NON-NLS-1$
if(k < 0) return null;
String schemaLocation = body.substring(j + 1, k);
- boolean isSingleComponent = isSingleComponent(body);
int i12 = schemaLocation.indexOf("1.2"); //$NON-NLS-1$
if(i12 >= 0) {