public void sendCaretToEndOfLine()
{
final TextLocation caret = getCaretLocation();
TypedLayout caretLine = getLines().get(caret.line);
setCaretLocation(TextLocation.at(caret.line, caretLine.visibleLength()));
}
public void startSelection(TextLocation location)
{
selectionLocation = location;