Author: scabanovich
Date: 2007-07-24 07:50:50 -0400 (Tue, 24 Jul 2007)
New Revision: 2621
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.tiles/src/org/jboss/tools/jst/web/tiles/model/FileTilesLoader.java
Log:
EXIN-86 model gets access to dtds from wtp
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.tiles/src/org/jboss/tools/jst/web/tiles/model/FileTilesLoader.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.tiles/src/org/jboss/tools/jst/web/tiles/model/FileTilesLoader.java 2007-07-24
11:50:09 UTC (rev 2620)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.tiles/src/org/jboss/tools/jst/web/tiles/model/FileTilesLoader.java 2007-07-24
11:50:50 UTC (rev 2621)
@@ -29,9 +29,10 @@
public void load(XModelObject object) {
String body = XModelObjectLoaderUtil.getTempBody(object);
+ int resolution =
EntityXMLRegistration.getInstance().resolve(object.getModelEntity());
String[] errors =
// XMLUtil.getXMLErrors(new StringReader(body));
- XMLUtil.getXMLErrors(new StringReader(body), false, false);
+ XMLUtil.getXMLErrors(new StringReader(body), resolution == EntityXMLRegistration.DTD,
resolution == EntityXMLRegistration.SCHEMA);
boolean hasErrors = (errors != null && errors.length > 0);
if(hasErrors) {
object.setAttributeValue("isIncorrect", "yes");
Show replies by date