throw new IllegalArgumentException("unknown type '" + e.getNodeName() + "'");
}
private RegexHighlight parseRegexHighlight(Element e) {
RegexHighlight regexHighlight = new RegexHighlight();
regexHighlight.setContentField(e.getAttribute("field"));
regexHighlight.setPattern(XmlReaderUtil.parsePattern(XmlReaderUtil.getSingleElement(element, "pattern"), 0));
regexHighlight.setColours(XmlReaderUtil.parseColours(XmlReaderUtil.getSingleElement(element, "colours")));
return regexHighlight;
}