listener for ide actions
I am creating first plugin for idea.
Can I create listener for ide actions like "on open file", "on close file", "commit in git" and etc
My be link to documentation or examples?
thank you
Please sign in to leave a comment.
Hi,
As for listening for "on open file" and "on close file" event, it can be archived with this code:
To listen for "commit in git", you may use `com.intellij.openapi.vcs.checkin.CheckinHandlerFactory` extension point:
Register it in plugin.xml
Then you need to obtain information about checked in files in com.intellij.openapi.vcs.checkin.CheckinHandler#checkinSuccessful (see javadoc):
See another example: com.intellij.tools.ExternalToolsCheckinHandlerFactory.
As for documentation or examples, please refer to IntelliJ IDEA source code https://github.com/JetBrains/intellij-community and http://www.jetbrains.org/intellij/sdk/docs