3
我创建了一个IntelliJIdea插件,使用行为条目plugin.xml
像如何IntelliJIdea插件发展的行动仅添加的strings.xml文件的Android
<actions>
<!-- Add your actions here -->
<group id="AL.Localize" text="_Localize" description="Localize strings" >
<add-to-group group-id="ProjectViewPopupMenu"/>
<action id="AL.Convert" class="action.ConvertToOtherLanguages" text="Convert to other languages"
description="Convert this strings.xml to other languages that can be used to localize your Android app.">
</action>
</group>
</actions>
使用此设置,我的动作将用户后出现右键单击文件。就像这样:
的问题是,Convert to other languages
菜单显示的时候,我只希望这个菜单显示在string.xml
文件时,用户单击鼠标右键,像Open Translation Editor(Preview)
菜单一样。 (Open Translation Editor(Preview)
是Android Studio在version 0.8.7中推出的功能)
我该怎么办?
太好了!非常感谢。 – Wesley 2014-12-07 09:20:38