public void addToHierarchy(FoldHierarchyTransaction transaction)
throws BadLocationException {
if (FoldOperation.isBoundsValid(startOffset, endOffset,
template.getStartGuardedLength(), template.getEndGuardedLength())) {
if (log.isLoggable(Level.FINE)){
log.log(Level.FINE, "CFM.BlockFoldInfo.updateHierarchy: Creating fold at ({0}, {1})",
new Object[]{startOffset, endOffset});
}
fold = getOperation().addToHierarchy(
template.getType(), template.getDescription(), collapse,
startOffset, endOffset,
template.getStartGuardedLength(), template.getEndGuardedLength(),
this,
transaction);
}
}