public interface EditingContext
allows client code to interact with the editor caret and selection
| Modifier and Type | Method and Description |
|---|---|
int |
getCaretOffset() |
IRegion |
getSelection() |
Subscription |
registerOnCaretOffsetChanged(java.util.function.Consumer<java.lang.Integer> listener) |
Subscription |
registerOnSelectionChanged(java.util.function.Consumer<IRegion> listener) |
void |
revealCaret() |
void |
setCaretOffset(int offset) |
void |
setCaretOffset(int offset,
boolean keepSelection) |
void |
setSelection(IRegion selection) |
void |
showContextInformation(ContextInformation info) |
void |
triggerAction(TextEditAction action) |
int getCaretOffset()
void setCaretOffset(int offset)
void setCaretOffset(int offset,
boolean keepSelection)
void revealCaret()
IRegion getSelection()
void setSelection(IRegion selection)
void showContextInformation(ContextInformation info)
void triggerAction(TextEditAction action)
Subscription registerOnCaretOffsetChanged(java.util.function.Consumer<java.lang.Integer> listener)
Subscription registerOnSelectionChanged(java.util.function.Consumer<IRegion> listener)