zoukankan      html  css  js  c++  java
  • Eclipse中加入自己的菜单项和工具栏项

    实际上就是对eclipse actionSets扩展点的应用

    <extension point="org.eclipse.ui.actionSets">
    <actionSet
            id="my.actionSet"
            label="Sample Action Set"
            visible="true">
            <menu
                      id="sampleMenu"
                      label="Sample &amp;Menu">
                      <separator
                               name="sampleGroup">
                      </separator>
           </menu>
           <action
                     class="My.SampleAction"
                     icon="icons/sample.gif"
                     id="My.SampleActionID"
                     label="&amp;Sample Action"
                     menubarPath="sampleMenu/sampleGroup"
                     toolbarPath="sampleGroup"
                     tooltip="Hello, Eclipse world">
            </action>
    </actionSet>
    </extension>

    只需要实现My.SampleAction类就好了,这个类必须实现IWorkbenchWindowActionDelegate或者IWorkbenchWindowPulldownDelegate接口。具体应用参考eclipse help中关于org.eclipse.ui.actionSets扩展点的说明。

  • 相关阅读:
    硬件接口通信速度
    python socket非阻塞及python队列Queue
    pandaboard用wifi时打不开网页
    pandaboard安装ubuntu14.04系统遇到的问题
    创建ROS工作空间和包
    CAN 和 CANopen的区别和联系
    各种通信方式总汇
    ROS中的CMakeLists.txt
    备忘录模式
    class文件概述
  • 原文地址:https://www.cnblogs.com/youngerbaby/p/532464.html
Copyright © 2011-2022 走看看