Listening to an event when opening a commit menu

How do I listen for events when I open a menu with a commit and get CommitMessageI from there?

I tried that:

class ProjectService(project: Project) {
init {
ActionManager.getInstance().registerAction("perform-set-message", SetCommitTemplateAction())

class Listener : AnAction() {
override fun actionPerformed(e: AnActionEvent) {
val project = e.project!!
val data = Refreshable.PANEL_KEY.getData(e.dataContext)"event")
if (data is CommitMessageI) {"Commit event")

But it doesn't work.
Logger never print messages in idea.log

1 comment

Sorry, but I don't understand your question.


Please sign in to leave a comment.