Document getDocument()
Returns the document this text area is editing.
jEdit's text area component.
Classes for the script editor used within the editor to create and modify Python and Lua scripts.
This package contains the other part of the script editor.
int offsetToX2(final int line, final int offset)
Converts an offset in a line into an x co-ordinate.
String getSelectedText()
Returns the selected text, or null if no selection is active.
void setSelectedText(@NotNull final String selectedText)
Replaces the selection with the specified text.
int lineToY(final int line)
Converts a line index to a y co-ordinate.
ScriptEditControl - Manages events and data flow for the script editor entity.
int getLineStartOffset(final int line)
Returns the start offset of the specified line.
int getCaretPosition()
Returns the caret position.