if (offset <= 0) { return offset; }
int getWordStart(int offset) {	int line = logicalContent.getLineAtOffset(offset);	int lineOffset = logicalContent.getOffsetAtLine(line);	String lineText = logicalContent.getLine(line);	if (offset <= 0) {		return offset;	}	if (offset == lineOffset) {		line--;		lineText = logicalContent.getLine(line);		offset = logicalContent.getOffsetAtLine(line) + lineText.length();	}	else {		TextLayout layout = renderer.getTextLayout(lineText, lineOffset);		offset -= lineOffset;		offset = layout.getPreviousOffset(offset, SWT.MOVEMENT_WORD);		offset += lineOffset;		renderer.disposeTextLayout(layout); 	}	return offset;}