}
EditPart containerEditPart = position.getContainerPart();
if (containerEditPart instanceof TextEditPart) {
CSSTextFigure figure = (CSSTextFigure) ((TextEditPart) containerEditPart)
.getFigure();
ret = figure.calculateCaretPosition(position.getOffset());
figure.translateToAbsolute(ret);
ret.width = CaretUpdater.CARET_WIDTH;
} else {
int offset = position.getOffset();
// there is no child