e.printStackTrace();
}
}
private void foldTags(HashMap markerMap, String tagName, boolean autoCollapse, int minLines) {
DocItem rootItem = null;
try {
rootItem = doc.getCFDocument().getDocumentRoot();
} catch (NullPointerException e) {
// e.printStackTrace();
System.out.println("CodeFoldingSetter::foldTags got a null from doc.getCFDocument().");
return;
}
// nodes =
// rootItem.selectNodes("//function[#startpos>=0 and #endpos < 200]");
CFNodeList nodes = rootItem.selectNodes("//" + tagName.toLowerCase());
Iterator it = nodes.iterator();
while (it.hasNext()) {
Object o = it.next();
if (o instanceof CfmlTagItem && ((CfmlTagItem) o).matchingItem != null) {