protected final ISelection getAfterCommandDesignerSelection() {
// try {
if (_resultRange == null) {
return null;
}
IDOMPosition startPos = _resultRange.getStartPosition();
DesignPosition start = DOMPositionHelper.toDesignPosition(startPos);
if (_resultRange.isEmpty()) {
return new DesignRange(start, start);
}
IDOMPosition endPos = _resultRange.getEndPosition();
return new DesignRange(start, DOMPositionHelper
.toDesignPosition(endPos));
// TODO: don't know what this exception catch is for
// } catch (Exception e) {
// // "Selection error"