* @param formatRange
*/
private void formatSiblings(TextEdit edit, DOMRegion domRegion, XMLFormattingConstraints parentConstraints, Position formatRange) {
IStructuredDocumentRegion previousRegion = null;
IStructuredDocumentRegion currentRegion = domRegion.documentRegion;
IDOMNode currentDOMNode = domRegion.domNode;
while (currentDOMNode != null && currentRegion != null && formatRange.overlapsWith(currentRegion.getStartOffset(), currentRegion.getLength()) && (fProgressMonitor == null || !fProgressMonitor.isCanceled())) {
domRegion.documentRegion = currentRegion;
domRegion.domNode = currentDOMNode;
// need to make sure current document region and current
// dom node match up
if (currentDOMNode.getFirstStructuredDocumentRegion().equals(currentRegion)) {
// format this document region/node, formatRegion will
// return the last node/region formatted
domRegion = formatRegion(edit, formatRange, parentConstraints, domRegion, previousRegion);
}
else {