Idea intellij plugin not working in android studio 1.5.1

前端 未结 2 1299
暗喜
暗喜 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

     
        
        
    
    

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

提交回复
热议问题