Integration into Vcs Commit command
I want to integrate my plugin (it checks that file meets some requirements) before Vcs Commit command.
So the effect should be like:
1) User clicks Commit
2) My plugin is called for check
3) Commit is performed if check is OK.
I've seen this already in IDEA - inspections are performed before commit and IDEA proposes not to commit file that breaks some inspection rules.
So the question is - can I implement this from my custom plugin?
Thanks in advance.
Please sign in to leave a comment.
Hello Matvey,
Please file a JIRA issue. Hurry up so we can implement an API before 5.1
ships in a few weeks.
-
Maxim Shafirov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Added: IDEA-6369.
Thanks.
Matvey Kazakov wrote on 12/01/06 21:05:
I see the latest build has this:
OpenAPI. API for adding actions to Commit dialog.
OpenAPI. API for running custom processes before check-in.
Is there any docs on it anywhere?
Hello Mark,
MD> I see the latest build has this:
MD>
MD> * OpenAPI. API for adding actions to Commit dialog.
MD> * OpenAPI. API for running custom processes before check-in.
MD> Is there any docs on it anywhere?
Not right now, but I hope the new APIs will be documented in the final 5.1
release.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"
IDEA 5.1 is released.
Is mentioned API documentation included into development kit?
If yes, could you give a hint how to find it?
Thanks.
Matvey.
Hello Matvey,
MK> IDEA 5.1 is released.
MK> Is mentioned API documentation included into development kit?
Yes.
MK> If yes, could you give a hint how to find it?
http://blogs.jetbrains.com/yole/archives/000089.html gives an overview of
the OpenAPI changes in 5.1.
--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"
api has been update.
How can be the "action before check in" could be implemented? Should we use CheckinEnvironment? a couple of lines of code wolud help.
Thanks
Hello Sam,
SR> api has been update.
SR>
SR> How can be the "action before check in" could be implemented? Should
SR> we use CheckinEnvironment? a couple of lines of code wolud help.
As written in the blog post linked from the post to which you're replying,
one of the standard "actions before checkin" is distributed with full source
code. See the com.intellij.openapi.vcs.checkin.CodeAnalysisBeforeCheckinHandler
in the Plugin Development Kit.
The APIs for this didn't change much between 5.1 and 6.0.
--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"
I am also working on plugin which requires me to listen to vcs's "Update" command. I am trying to find out which files were created,modified, merged or merged with conflict so that I can take appropriate action on those files. So my question is can I be able to use com.intellij.openapi.vcs.update package for my requirement?.
Thanks,
MSDoni.
Hello msdoni,
m> I am also working on plugin which requires me to listen to vcs's
m> "Update" command. I am trying to find out which files were
m> created,modified, merged or merged with conflict so that I can take
m> appropriate action on those files. So my question is can I be able to
m> use com.intellij.openapi.vcs.update package for my requirement?.
Unfortunately there is currently no way to access the update results through
OpenAPI. You can file a JIRA request to provide an OpenAPI for this.
--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"
I am not able to create JIRA because in the step 1 of 2 of creating new issue, i am not sure which project to select in Project dropdown box. I dont see IDEA related project. I only see IDEA:Feedback.
MSDoni.
Hello msdoni,
m> I am not able to create JIRA because in the step 1 of 2 of creating
m> new issue, i am not sure which project to select in Project dropdown
m> box. I dont see IDEA related project. I only see IDEA:Feedback.
IDEA:Feedback is exactly the project where end users submit requests for
IntelliJ IDEA.
--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"
Thank You.
MSDoni.
IDEA-9506 added.
MSDoni