1 package org.hibernate.eclipse.mapper.modelhandler; 2 3 import org.eclipse.wst.sse.core.internal.document.IDocumentCharsetDetector; 4 import org.eclipse.wst.sse.core.internal.document.IDocumentLoader; 5 import org.eclipse.wst.sse.core.internal.ltk.modelhandler.AbstractModelHandler; 6 import org.eclipse.wst.sse.core.internal.ltk.modelhandler.IModelHandler; 7 import org.eclipse.wst.sse.core.internal.provisional.IModelLoader; 8 import org.eclipse.wst.xml.core.internal.encoding.XMLDocumentCharsetDetector; 9 import org.eclipse.wst.xml.core.internal.encoding.XMLDocumentLoader; 10 import org.eclipse.wst.xml.core.internal.modelhandler.XMLModelLoader; 11 12 13 16 public class ModelHandlerForREVENGXML extends AbstractModelHandler implements IModelHandler { 17 21 static String AssociatedContentTypeID = "org.hibernate.eclipse.mapper.content-type.reveng.xml"; 26 private static String ModelHandlerID = "org.hibernate.eclipse.mapper.handler.reveng.xml"; 28 public ModelHandlerForREVENGXML() { 29 super(); 30 setId(ModelHandlerID); 31 setAssociatedContentTypeId(AssociatedContentTypeID); 32 } 33 34 public IDocumentCharsetDetector getEncodingDetector() { 35 return new XMLDocumentCharsetDetector(); 36 } 37 38 public IDocumentLoader getDocumentLoader() { 39 return new XMLDocumentLoader(); 40 } 41 42 public IModelLoader getModelLoader() { 43 return new XMLModelLoader(); 44 } 45 46 } 47 | Popular Tags |