Search in sources :

Example 1 with DTDStructuredDocumentReParser

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;
}
Also used : DTDStructuredDocumentReParser(org.eclipse.wst.dtd.core.internal.text.DTDStructuredDocumentReParser) BasicStructuredDocument(org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument) IStructuredDocument(org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument)

Aggregations

DTDStructuredDocumentReParser (org.eclipse.wst.dtd.core.internal.text.DTDStructuredDocumentReParser)1 IStructuredDocument (org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument)1 BasicStructuredDocument (org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument)1