this.nodeManager = nodeManager;
}
public Point<ContentNode> getWordBoundary(boolean forward) {
Point<ContentNode> boundary = null;
SelectionWebkit s = SelectionWebkit.getSelection();
if (forward) {
s.move(Direction.FORWARD, MoveUnit.WORD);
} else {
s.move(Direction.BACKWARD, MoveUnit.WORD);
}
try {
SelectionW3CNative selection = SelectionW3CNative.getSelectionGuarded();
JsRange range = s.getRangeAt(0);
boundary = nodeManager.nodeOffsetToWrapperPoint(
selection.focusNode(), selection.focusOffset());
} catch (HtmlMissing e) {
EditorStaticDeps.logger.fatal().log("html missing not handled", e);
} catch (HtmlInserted e) {