maoyi606 发表于 2013-1-28 18:14:12

Eclipse 插件开发 -

<extension
         point="org.eclipse.ui.actionSets">
      <actionSet
            id="com.huawei.nte.throughput.actionSet"
            label="Throuphput Test"
            visible="true">
         <menu id="throughput"
   label="T&hroughput Test"
   path="com.huawei.nte.menu.tool/additions">
   <separator name="tMacGroup"/>
   <separator name="tipGroup"/>
   </menu>
         
         <action
               label="MAC &Throughput"
               class="com.huawei.nte.throughput.actions.MACThroughputAction"
               tooltip="MACLatency"
               menubarPath="com.huawei.nte.menu.tool/throughput/tMacGroup"
               id="com.huawei.nte.throughput.actions.MACThroughputAction">
         </action>
</actionSet>
   </extension>

com.huawei.nte.menu.tool:
ApplicationActionBarAdvisor类中fillMenuBar方法中创建
MenuManager toolMenu = new MenuManager("&Tool", "com.huawei.nte.menu.tool");


http://www.ibm.com/developerworks/cn/opensource/os-cn-ecl-menuext/index.html
页: [1]
查看完整版本: Eclipse 插件开发 -