Class IEditor.CaretPosition

java.lang.Object
org.omegat.gui.editor.IEditor.CaretPosition
Enclosing interface:
IEditor

public static class IEditor.CaretPosition extends Object
Storage for caret position and selection.
  • Constructor Details

    • CaretPosition

      public CaretPosition(int position)
    • CaretPosition

      public CaretPosition(int selectionStart, int selectionEnd)
  • Method Details

    • startOfEntry

      public static IEditor.CaretPosition startOfEntry()
      We can't define it once since 'position' can be changed later.
    • goToCharacterAtIndex

      public static IEditor.CaretPosition goToCharacterAtIndex(int location)
      Set caret to a specific character.
      Parameters:
      location - 0 when first character of String, otherwise location counts all text, both original language and translated text.
      Returns:
      caret position.