Plugin: Restricting an action inside a gruop

I'm writing a simple plugin for Android Studio where i generate a few files. I've extended the AnAction class and registered the action like this:

<action id="com.drilon.action.NewActivityAction" class="drilon.action.NewActivityAction"
text="New MVP Activity"
description="Create a new mvp activity with corresponding view and presenter">
<add-to-group group-id="NewGroup1" anchor="after" relative-to-action="NewClass"/>
</action>


But now in every New -> option my action appears. Can i restrict it to only show inside the java package?

1

Please sign in to leave a comment.