Search in sources :

Example 1 with ModelHandlerForXML

use of org.eclipse.wst.xml.core.internal.modelhandler.ModelHandlerForXML in project webtools.sourceediting by eclipse.

the class ScannerUnitTests method setUpXML.

protected IStructuredDocumentRegionList setUpXML(String text) {
    setupModel(new ModelHandlerForXML());
    parser.addBlockMarker(new BlockMarker("script", null, DOMRegionContext.BLOCK_TEXT, false));
    parser.addBlockMarker(new BlockMarker("style", null, DOMRegionContext.BLOCK_TEXT, false));
    parser.addBlockMarker(new BlockMarker("disallowJSP", null, DOMRegionContext.BLOCK_TEXT, true, false));
    input = text;
    fModel.set(input);
    return fModel.getRegionList();
}
Also used : BlockMarker(org.eclipse.wst.sse.core.internal.ltk.parser.BlockMarker) ModelHandlerForXML(org.eclipse.wst.xml.core.internal.modelhandler.ModelHandlerForXML)

Aggregations

BlockMarker (org.eclipse.wst.sse.core.internal.ltk.parser.BlockMarker)1 ModelHandlerForXML (org.eclipse.wst.xml.core.internal.modelhandler.ModelHandlerForXML)1