Plugin not showing in main menu

I have created a custom action and added it to the xml but still can't find it in the menu. What am I missing here? 

 

<action id="jplugin.Allaudin" class="com.mallaudin.jplugin.Allaudin" text="Plugin Name" description="Plugin Desc">
<add-to-group group-id="MainMenu" anchor="first"/>
<keyboard-shortcut keymap="$default" first-keystroke="shift ctrl alt B" second-keystroke="shift ctrl alt X"/>
</action>

0
2 comments

I think you can only add a group to main menu, so e.g:

<group id="MyGroup" text="My G_roup" description="My Group" popup="true">
  <action id="jplugin.Allaudin" class="com.mallaudin.jplugin.Allaudin" text="Plugin Name" description="Plugin Desc">
    <keyboard-shortcut keymap="$default" first-keystroke="shift ctrl alt B" second-keystroke="shift ctrl alt X"/>
  </action>

  <add-to-group group-id="MainMenu" anchor="first"/>
</group>

 

Not sure about the keyboard-shortcut.

2

this should work too:

<actions>
<group id="Id1" text="Plugin name" description="Plugin actions">
<add-to-group group-id="MainMenu" anchor="last"/>

<group id="Id2" text="Hello action" description="..." popup="true">
<action id="Id3"
class="com.plugin.action.Hello"
text="hello!" description="..."/>

</group>

</actions>

shortcuts may be manually assigned by user in settings.

0

Please sign in to leave a comment.