Registering a Custom TypedActionHandler; EditorActionManager.getTypedAction is deprecated
Answered
I am a beginner, I am currently studying,and I developed according to the provided documentation
but now it prompts me ‘EditorActionManager.getTypedAction is deprecated’, what method should I use to replace it?
this is my code
static{
EditorActionManager actionManager = EditorActionManager.getInstance();
TypedAction typedAction = actionManager.getTypedAction();
typedAction.setupHandler(new MyKeyTypedHandler());
}
`You can register you MyTypeHandler in plugin.xml as an extension for extension point 'com.intellij.editorTypedHandler'.`
But I tried and got an error of `org. example. editor.EditorEventTest` is not assigned to ‘com. intellij.codeInsight. editorActions. TypedHandlerDelegate’


Please sign in to leave a comment.
Hi,
Deprecation message points to the API that should be used: