<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 36, comments - 30, trackbacks - 0, articles - 3
    擴(kuò)展點(diǎn):
    org.eclipse.ui.menus(確定菜單創(chuàng)建的區(qū)域)
    org.eclipse.ui.commands
    org.eclipse.ui.handlers(command的具體行為)
    org.eclipse.ui.commandImages(comand的圖片)

    擴(kuò)展點(diǎn)org.eclipse.ui.menus用來對(duì)菜單進(jìn)行擴(kuò)展,可以對(duì)主菜單,工具欄,上下文菜單進(jìn)行擴(kuò)展。

    示例代碼如下:
    <extension
             
    point="org.eclipse.ui.menus">
          
    <menuContribution
                
    allPopups="false"
                locationURI
    ="menu:org.eclipse.ui.main.menu?after=additions">
             
    <command
                   
    commandId="com.xxxx.test.command1"
                   style
    ="push">
             
    </command>
          
    </menuContribution>
    </extension>

    其中l(wèi)ocationURI屬性指定菜單擴(kuò)展的位置,上述代碼是對(duì)主菜單進(jìn)行擴(kuò)展,如果要對(duì)工具欄和上下文菜單進(jìn)行擴(kuò)展,書寫格式如下:

    toolbar:org.eclipse.ui.main.toolbar?after=additions
    popup:org.eclipse.ui.popup.any?after=additions(上下文菜單在任何位置出現(xiàn))
    popup:org.eclipse.ui.views.ProblemView?after=additions(上下文菜單在問題視圖中出現(xiàn))

    commandId屬性指定該menu對(duì)應(yīng)的command,一個(gè)menu可以對(duì)應(yīng)多個(gè)command。

    command可以通過擴(kuò)展點(diǎn)org.eclipse.ui.commands擴(kuò)展,示例代碼如下:

    <extension
             
    point="org.eclipse.ui.commands">
    <category
                
    id="com.xxxx.test.category1"
                name
    ="MenuTest">
          
    </category>

          
    <command
    categoryId="="com.xxxx.test.category1"
                id
    ="com.xxxx.test.command1"
                name
    ="CommandA">
          
    </command>
     
    </extension>

    至于Command具體要做什么,需要通過擴(kuò)展點(diǎn)org.eclipse.ui.handlers來指定,示例代碼如下:

    <extension
             
    point="org.eclipse.ui.handlers">
          
    <handler
                
    class="com.xxxx.test.SampleHandler"
                commandId
    ="com.xxxx.test.command1">
          
    </handler>
     
    </extension>

    還有擴(kuò)展點(diǎn)org.eclipse.ui.commandImages,可以指定Command對(duì)應(yīng)的圖標(biāo)。

     <extension
             
    point="org.eclipse.ui.commandImages">
          
    <image
                
    commandId="com.xxxx.test.command1"
                icon
    ="icons/sample.gif">
          
    </image>
      
    </extension>

    主站蜘蛛池模板: 免费中文字幕视频| 亚洲国产夜色在线观看| 黄色网址免费在线| xvideos亚洲永久网址| 亚洲熟妇少妇任你躁在线观看| 亚洲第一成年免费网站| 亚洲一区二区影视| 成年女人视频网站免费m | 久久亚洲AV无码精品色午夜麻| 两个人看的www免费高清| 最新精品亚洲成a人在线观看| 成av免费大片黄在线观看| 亚洲色欲久久久综合网东京热| 成人免费一区二区三区| 亚洲av永久无码精品漫画| xxxx日本免费| 亚洲欧美aⅴ在线资源| 国产猛烈高潮尖叫视频免费| 人妻仑刮八A级毛片免费看| 久久精品国产亚洲沈樵| 91久久青青草原线免费| 亚洲熟妇AV一区二区三区宅男| 国产成人精品免费视频软件| 一个人免费播放在线视频看片| 亚洲国产精品无码久久久不卡| 久久免费看黄a级毛片| 亚洲妇女无套内射精| 国产亚洲美日韩AV中文字幕无码成人| 精品视频在线免费观看| 亚洲国产成人精品青青草原| 免费在线观看一级毛片| 日本免费在线观看| 一本色道久久88—综合亚洲精品| 全部免费国产潢色一级| 日韩免费高清播放器| 亚洲自偷自偷在线成人网站传媒| 亚洲精品国产福利一二区| 67pao强力打造国产免费| 在线观看亚洲免费视频| 久久亚洲精品AB无码播放| 女人18毛片免费观看|