From d5b2b7c6051fe752f6d4ee385b80a30e63bf3a5d Mon Sep 17 00:00:00 2001 From: Anna Bulenkova Date: Tue, 9 Dec 2014 16:46:57 +0100 Subject: [PATCH] [md] Editor - intro --- tutorials/working_with_editor.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tutorials/working_with_editor.md b/tutorials/working_with_editor.md index 5cbc8cf4a..c7f72da69 100644 --- a/tutorials/working_with_editor.md +++ b/tutorials/working_with_editor.md @@ -1,2 +1,18 @@ Basics of working with the editor =========== + +Classes for working with editor, e.g. to manipulate the caret, get an access to a text selection, or modify the text, currently represented in the editor, are located in +[editor-ui-api] (https://github.com/JetBrains/intellij-community/tree/master/platform/editor-ui-api) +package. Note, that this part of the API allows to operate only with text. +If you need to access PSI please see +[PSI Cookbook] (https://confluence.jetbrains.com/display/IDEADEV/PSI+Cookbook) +section. + +----------- + +#Editor +An instance on IntelliJ IDEA editor is represented by an interface +[Editor.java] (https://github.com/JetBrains/intellij-community/blob/master/platform/editor-ui-api/src/com/intellij/openapi/editor/Editor.java), +and it's implementation can be found in a class +[EditorImpl.java] (https://github.com/JetBrains/intellij-community/blob/master/platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorImpl.java). +