diff --git a/tutorials/editor_basics.md b/tutorials/editor_basics.md index a421ceaea..344131b26 100644 --- a/tutorials/editor_basics.md +++ b/tutorials/editor_basics.md @@ -102,11 +102,14 @@ Class [EditorActionHandler.java] (https://github.com/JetBrains/intellij-community/blob/master/platform/platform-api/src/com/intellij/openapi/editor/actionSystem/EditorActionHandler.java) also stays for actions activated by keystrokes in the editor. This type of the editor handler should be registered as an extension point -`````` +``````. Two types of handlers are supported: the ones which are executed once, and the ones which are executed for each caret. Examples of already implemented handlers can be found in -[this package] (https://github.com/JetBrains/intellij-community/tree/master/platform/lang-impl/src/com/intellij/codeInsight/editorActions). +[this package] (https://github.com/JetBrains/intellij-community/tree/master/platform/lang-impl/src/com/intellij/codeInsight/editorActions), +e.g. the class +[CopyHandler.java] (https://github.com/JetBrains/intellij-community/blob/master/platform/lang-impl/src/com/intellij/codeInsight/editorActions/CopyHandler.java). +To implement the logic you need to override ```implement()``` action. And used like shows the following example: [EditorHandlerIllustration.java] (https://github.com/JetBrains/intellij-sdk/blob/master/code_samples/editor_basics/src/org/jetbrains/plugins/editor/basics/EditorHandlerIllustration.java) @@ -120,6 +123,9 @@ TODO ----------- +### [Sample plugin] (https://github.com/JetBrains/intellij-sdk/tree/master/code_samples/editor_basics) +----------- + See also [CommonDataKeys.java] (https://github.com/JetBrains/intellij-community/blob/master/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/CommonDataKeys.java), [DataKey.java] (https://github.com/JetBrains/intellij-community/blob/master/platform/editor-ui-api/src/com/intellij/openapi/actionSystem/DataKey.java),