Search in sources :

Example 1 with CSSStructuredDocumentReParser

use of org.eclipse.wst.css.core.internal.text.CSSStructuredDocumentReParser in project webtools.sourceediting by eclipse.

the class CSSDocumentLoader method newEncodedDocument.

protected IEncodedDocument newEncodedDocument() {
    // DMW: I copied this from CSSModelImple ...
    // but am not sure its right
    IStructuredDocument structuredDocument = StructuredDocumentFactory.getNewStructuredDocumentInstance(getParser());
    CSSStructuredDocumentReParser reParser = new CSSStructuredDocumentReParser();
    reParser.setStructuredDocument(structuredDocument);
    ((BasicStructuredDocument) structuredDocument).setReParser(reParser);
    return structuredDocument;
}
Also used : BasicStructuredDocument(org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument) IStructuredDocument(org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument) CSSStructuredDocumentReParser(org.eclipse.wst.css.core.internal.text.CSSStructuredDocumentReParser)

Aggregations

CSSStructuredDocumentReParser (org.eclipse.wst.css.core.internal.text.CSSStructuredDocumentReParser)1 IStructuredDocument (org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument)1 BasicStructuredDocument (org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument)1