I would like to add a commit action to my plugin, so it would commit a file to the VCS (SVN in our case). I've found the following solution to commit a file immediately, but I would like to show the default commit dialog of IntelliJ.
ProjectLevelVcsManager plvm = ProjectLevelVcsManager.getInstance(project);
AbstractVcs vcs = plvm.getVcsFor(vf);
VcsContextFactory contextFactory = PeerFactory.getInstance().getVcsContextFactory();
FilePath path = contextFactory.createFilePathOn(virtualFile);
List<Change> changes = new ArrayList<Change>();
CurrentContentRevision cr = new CurrentContentRevision(path);
Change c = new Change(cr, cr);
vcs.getCheckinEnvironment().commit(changes, "Commit " + virtualFile.getNameWithoutExtension());
How can I show the default commit dialog for a given file? Thanks a lot!