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();
}
Aggregations