int startRegionEnd = node.getStartStructuredDocumentRegion()
.getEnd();
if (offset <= startRegionEnd) {
// it is in the start tag region. So put position at first
// child position.
return new DOMRefPosition2(node, false);
}
return new DOMRefPosition2(node, true);
} else {
return new DOMRefPosition(node, true);
}
// XXX: the implementation in EditModelQuery seemed to be very complex.
// Need revisit that