use of org.eclipse.wst.sse.core.internal.ltk.parser.BlockMarker in project webtools.sourceediting by eclipse.
the class XMLLineTokenizer method getBlockMarkerCaseSensitivity.
/* user method */
public boolean getBlockMarkerCaseSensitivity(String name) {
Iterator iterator = fBlockMarkers.iterator();
while (iterator.hasNext()) {
BlockMarker marker = (BlockMarker) iterator.next();
boolean casesensitive = marker.isCaseSensitive();
if (casesensitive && marker.getTagName().equals(name))
return casesensitive;
else if (!casesensitive && marker.getTagName().equalsIgnoreCase(name))
return casesensitive;
}
return true;
}
use of org.eclipse.wst.sse.core.internal.ltk.parser.BlockMarker in project webtools.sourceediting by eclipse.
the class XMLTokenizer method getBlockMarkerCaseSensitivity.
/* user method */
public boolean getBlockMarkerCaseSensitivity(String name) {
Iterator iterator = fBlockMarkers.iterator();
while (iterator.hasNext()) {
BlockMarker marker = (BlockMarker) iterator.next();
boolean casesensitive = marker.isCaseSensitive();
if (casesensitive && marker.getTagName().equals(name))
return casesensitive;
else if (!casesensitive && marker.getTagName().equalsIgnoreCase(name))
return casesensitive;
}
return true;
}
use of org.eclipse.wst.sse.core.internal.ltk.parser.BlockMarker in project webtools.sourceediting by eclipse.
the class HTMLModelLoader method addHTMLishTag.
/**
* Convenience method to add tag names using BlockMarker object
*/
protected void addHTMLishTag(XMLSourceParser parser, String tagname) {
BlockMarker bm = new BlockMarker(tagname, null, DOMRegionContext.BLOCK_TEXT, false);
parser.addBlockMarker(bm);
}
use of org.eclipse.wst.sse.core.internal.ltk.parser.BlockMarker in project webtools.sourceediting by eclipse.
the class ScanningTests method newXMLParser.
public static RegionParser newXMLParser() {
XMLSourceParser parser = new XMLSourceParser();
parser.addBlockMarker(new BlockMarker("Script", DOMRegionContext.BLOCK_TEXT, false));
parser.addBlockMarker(new BlockMarker("stylE", DOMRegionContext.BLOCK_TEXT, false));
return parser;
}
use of org.eclipse.wst.sse.core.internal.ltk.parser.BlockMarker in project webtools.sourceediting by eclipse.
the class JSPTranslator method decodeScriptBlock.
void decodeScriptBlock(String blockText, int startOfBlock) {
XMLJSPRegionHelper helper = new XMLJSPRegionHelper(this, false);
// $NON-NLS-1$
helper.addBlockMarker(new BlockMarker("jsp:scriptlet", null, DOMJSPRegionContexts.JSP_CONTENT, false));
// $NON-NLS-1$
helper.addBlockMarker(new BlockMarker("jsp:expression", null, DOMJSPRegionContexts.JSP_CONTENT, false));
// $NON-NLS-1$
helper.addBlockMarker(new BlockMarker("jsp:declaration", null, DOMJSPRegionContexts.JSP_CONTENT, false));
// $NON-NLS-1$
helper.addBlockMarker(new BlockMarker("jsp:directive.include", null, DOMJSPRegionContexts.JSP_CONTENT, false));
// $NON-NLS-1$
helper.addBlockMarker(new BlockMarker("jsp:directive.taglib", null, DOMJSPRegionContexts.JSP_CONTENT, false));
helper.reset(blockText, startOfBlock);
// force parse
helper.forceParse();
}
Aggregations