How to get parent actions in my plugin, like user clicks on new, Java class.I want get those actions into my plugin?
已回答
I have created a plugin in that i added some actions those are like sample, so when user presses on my action then i am able to get that action, It's working good now I don't want to create new actions or items in intellij, I want to get the actions which is performed by intellij like clicked or file ,new, java class, run button etc.. means i want to get the parent action which is performed in my plugin, is it possible?
请先登录再写评论。
The answer is probably in https://plugins.jetbrains.com/plugin/4455 - it must handle this. KeyPromoter.java looks promising.Seems to add AWTEventListener...
com.intellij.openapi.actionSystem.ActionManager#addAnActionListener(com.intellij.openapi.actionSystem.ex.AnActionListener)