if ((textSelection.getLength() == 0) && (selectionStartIndexedRegion instanceof CommentImpl)) {
return;
}
model.beginRecording(this, XMLUIMessages.AddBlockComment_tooltip);
model.aboutToChangeModel();
try {
document.replace(openCommentOffset, 0, OPEN_COMMENT);
document.replace(closeCommentOffset, 0, CLOSE_COMMENT);
removeOpenCloseComments(document, openCommentOffset + OPEN_COMMENT.length(), closeCommentOffset - openCommentOffset - CLOSE_COMMENT.length());