Idea intellij plugin not working in android studio 1.5.1

前端 未结 2 1300
暗喜
暗喜 2021-01-22 16:06

I\'m developing a test plugin for android studio, my plugin works (The actions created are visible ) in Android studio 1.5 when added using \"install plugin from disk\". But the

相关标签:
2条回答
  • 2021-01-22 16:52

    As the other answer already pointed out the problem is caused by using a custom group class for the action group.

    When you may need custom action group?

    A Custom action group is needed only if you have some custom logic that controls the behavior of your group of actions, such as the group should be enabled on some selection in the editor,or on mouse hover ,or if you want to add actions dynamically to the group etc.

    If the purpose of group is to group the predefined actions and display it in a particular location the default action group is all that you need and it can be easily accomplished by following lines

     <group id="Test" text="Test" description="Main Test invocation Action"
           popup="true">
        <add-to-group group-id="MainMenu" anchor="last"/>
        <!--List of predefined actions here  -->
    </group>
    

    Note that the class attribute from the group tag is removed. Now the IDE considers its group as Default Action Group.

    0 讨论(0)
  • 2021-01-22 17:05

    The problem is caused by using a custom group class for the action group you add to the main menu. This is not supported in some versions of IntelliJ IDEA/Android Studio.

    0 讨论(0)
提交回复
热议问题