Intellij idea 插件如何处理编辑器事件动作?
1、创建CustomTypedActionHandler实现TypedActionHandler接口。如图

3、为了让我们自定义的 CustomTypedActionHandler插件可用,我们需要创建一个CustomTypedActionHandler实例对象,并通过setupHandler函数将对象传递给TypedAction类。如图

5、我们的Action中应该满足以下条件时,只能在这样的条件可见:有一个打开的项目,有一个编辑,还有至少一个编辑器中的插入活动。如图

7、在plugin.xml的actions扩展中配置EditorHandlerIllustration。如图
