XML : How to show the popup menu of an action group

I made an IntelliJ plugin that has several actions organized under one action group. Here is the plugin.xml file.

  <idea-plugin>      <!-- other plugin.xml tags... -->        <actions>          <group id="MyActionGroupId"                 popup="true"                 text="MyActionGroup" description="Related actions organized in a group">                <add-to-group group-id="EditorPopupMenu" anchor="first"/>              <add-to-group group-id="EditorActions" anchor="first"/>                <action id="MyActionId1"                       class="org.package.name.My_AnAction_1"                      text="Do stuff" description="Does stuff"/>                <action id="MyActionId2"                      class="org.package.name.My_AnAction_2"                      text="Do stuff" description="Does stuff"/>          </group>      </actions>    </idea-plugin>    

Currently, I can find MyActionId1 and MyActionId2 in the context menu and under the editor actions menu. (Ctrl+Shift+A) I can even assign keyboard shortcuts to them. (Settings | Keymap | MyActionId1)

However, I can't assign a keyboard shortcut to show MyActionGroupId as an independent popup (e.g. like the "Generate" (Alt+Ins) or "Refactor" (Ctrl+Alt+Shift+T) menus)

Q: What should be done (code-wise or in the IDE) to be able to show an action group as a popup menu ?

No comments:

Post a Comment