diff options
Diffstat (limited to 'platform/editor-ui-api/src/com/intellij/openapi/editor/Caret.java')
-rw-r--r-- | platform/editor-ui-api/src/com/intellij/openapi/editor/Caret.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/editor-ui-api/src/com/intellij/openapi/editor/Caret.java b/platform/editor-ui-api/src/com/intellij/openapi/editor/Caret.java index 43b5e75e08df..ba0743b4cfb0 100644 --- a/platform/editor-ui-api/src/com/intellij/openapi/editor/Caret.java +++ b/platform/editor-ui-api/src/com/intellij/openapi/editor/Caret.java @@ -26,6 +26,12 @@ import org.jetbrains.annotations.Nullable; */ public interface Caret extends UserDataHolderEx, Disposable { /** + * Returns an instance of Editor, current caret belongs to. + */ + @NotNull + Editor getEditor(); + + /** * Returns an instance of CaretModel, current caret is associated with. */ @NotNull |