use of org.eclipse.wst.dtd.core.internal.text.DTDStructuredDocumentReParser in project webtools.sourceediting by eclipse.
the class DTDDocumentLoader method newEncodedDocument.
protected IEncodedDocument newEncodedDocument() {
IStructuredDocument document = StructuredDocumentFactory.getNewStructuredDocumentInstance(getParser());
DTDStructuredDocumentReParser reParser = new DTDStructuredDocumentReParser();
reParser.setStructuredDocument(document);
if (document instanceof BasicStructuredDocument) {
((BasicStructuredDocument) document).setReParser(reParser);
}
return document;
}
Aggregations