Author: scabanovich
Date: 2007-07-20 10:51:29 -0400 (Fri, 20 Jul 2007)
New Revision: 2559
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.tiles/src/org/jboss/tools/jst/web/tiles/model/FileTilesRecognizer.java
Log:
EXIN-86 NullPointerException prevented when registering missing resources.
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.tiles/src/org/jboss/tools/jst/web/tiles/model/FileTilesRecognizer.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.tiles/src/org/jboss/tools/jst/web/tiles/model/FileTilesRecognizer.java 2007-07-20
14:51:15 UTC (rev 2558)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.tiles/src/org/jboss/tools/jst/web/tiles/model/FileTilesRecognizer.java 2007-07-20
14:51:29 UTC (rev 2559)
@@ -10,14 +10,13 @@
******************************************************************************/
package org.jboss.tools.jst.web.tiles.model;
-import org.eclipse.core.runtime.FileLocator;
import org.jboss.tools.common.model.loaders.*;
import org.jboss.tools.common.xml.XMLEntityResolver;
public class FileTilesRecognizer implements EntityRecognizer {
static {
try {
- XMLEntityResolver.registerPublicEntity(TilesConstants.DOC_PUBLICID,
FileLocator.resolve(
FileTilesRecognizer.class.getResource("/meta/tiles_config_1_1.dtd")).toString());
+ XMLEntityResolver.registerPublicEntity(TilesConstants.DOC_PUBLICID,
FileTilesRecognizer.class, "/meta/tiles_config_1_1.dtd");
} catch (Exception e) {}
}
Show replies by date