Menus for VCS plugins

I am trying to build a new VCS plugin for IDEA; it's going ok, but I added a menu and it is always disabled!

I have

    <group id="Rtc.Menu" popup="true" text="_RTC">
      <reference id="UpdateFiles"/>

     <add-to-group group-id="VcsGroup" anchor="last"/>
     <add-to-group group-id="VcsGroups" anchor="last"/>


* RTC VCS menu
public class RtcMenu extends StandardVcsGroup {
  public AbstractVcs getVcs(Project project) {
    return RtcVcs.getInstance(project);

  public String getVcsName(final Project project) {
    return RtcVcs.NAME;

and the StandardVcsGroup.update(AnActionEvent e) is setting the presentation to visible & enabled.


Also, where are the standard actions e.g. "UpdateFiles" and groups, e.g. "VcsGroup", or "VcsGroups" documented - I just copied these from the GIT one.

1 comment
Comment actions Permalink

Well, I figured it out:

The menu was disabled because everything within it was invisible - I thought "UpdateFiles" was the same as dirtying the file in the VcsDirtyScope, but that is unrelated.

I found the mapping for vcs related items in VcsActions.xml


Please sign in to leave a comment.