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"/>
</group>
and
/**
* RTC VCS menu
*/
public class RtcMenu extends StandardVcsGroup {
@Override
public AbstractVcs getVcs(Project project) {
return RtcVcs.getInstance(project);
}
@Override
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.
Please sign in to leave a comment.
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