From 2b85e5a14c8bcb187a7e348032feb6d594ed042e Mon Sep 17 00:00:00 2001 From: Anna Bulenkova Date: Thu, 11 Dec 2014 15:26:26 +0100 Subject: [PATCH] [md] Editor - TypedActionHandler --- tutorials/editor_basics.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tutorials/editor_basics.md b/tutorials/editor_basics.md index 593d2d915..48d79f2c4 100644 --- a/tutorials/editor_basics.md +++ b/tutorials/editor_basics.md @@ -86,8 +86,17 @@ Example from [ExportToFileUtil.java] (https://github.com/JetBrains/intellij-community/blob/master/platform/platform-impl/src/com/intellij/ide/util/ExportToFileUtil.java) #Actions activated by different editor events +Classes that provide support for handling events from the editor and react on then are located in +[editor.actionSystem] (https://github.com/JetBrains/intellij-community/tree/master/platform/platform-api/src/com/intellij/openapi/editor/actionSystem) +package. Following examples can be considered. + ##TypedActionHandler -TODO +Interface [TypedActionHandler.java] (https://github.com/JetBrains/intellij-community/blob/master/platform/platform-api/src/com/intellij/openapi/editor/actionSystem/TypedActionHandler.java) +stays for actions activated by typing in the editor, meaning if typing starts actions will be executed. +An example of using TypedActionHandler can be found in class +[MyTypedHandler.java] (https://github.com/JetBrains/intellij-sdk/blob/master/code_samples/editor_basics/src/org/jetbrains/plugins/editor/basics/MyTypedHandler.java). +In this case a string *Typed* will be inserted in the editor on the first position after every keystroke. + ##EditorActionHandler TODO #Working with text