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

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

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

    posts - 20, comments - 16, trackbacks - 0, articles - 0

    [轉載] FAQ How do I associate an action with a command?

    Posted on 2008-01-08 14:44 Raul Gong 閱讀(275) 評論(0)  編輯  收藏 所屬分類: eclipse

    From Eclipsepedia

    http://wiki.eclipse.org/FAQ_How_do_I_associate_an_action_with_a_command?

    Actions are associated with commands in various ways depending on how the actions are defined. For actions contributed via the actionSets extension point, the association with a command is done directly in the action definition. The definitionId attribute of the action element must match the ID of the command it is associated with:

       <actionSet ...>
          <action
             definitionId="org.eclipse.faq.sampleCommand"
             ...>
          </action>
       </actionSet>
       <command
          id="org.eclipse.faq.sampleCommand"
          ...>
       </command>

    For actions created programmatically, associating the action with a command is a two-step process. As with declarative actions, the first step is to set the action’s definition ID to match the ID of the command. The command must still be defined declaratively, using the command extension point. The definition ID is set by calling Action.setDefinitionId. The second step is to register the action with the platform, using the key-binding service. This service can be accessed from the IWorkbenchPartSite, which is accessible to both views and editors. Here is an example of these steps for an action in a view:

       action.setActionDefinitionId("some.unique.id");
       view.getSite().getKeyBindingService().registerAction(action);

     

    主站蜘蛛池模板: 人妻无码中文字幕免费视频蜜桃| 亚洲一区中文字幕在线观看| 免费一区二区三区在线视频| 国产成人高清精品免费软件| 国产精品亚洲一区二区在线观看| 永久久久免费浮力影院| 亚洲精品无码永久在线观看男男| 三年片在线观看免费大全| 亚洲免费人成视频观看| 99视频全部免费精品全部四虎| 亚洲导航深夜福利| 国产日本一线在线观看免费| 亚洲色成人四虎在线观看| 在线观看免费a∨网站| 亚洲欧美黑人猛交群| 四虎免费影院4hu永久免费| 一区二区免费国产在线观看| 国产性爱在线观看亚洲黄色一级片| 国产一级一毛免费黄片| 久久亚洲精品无码AV红樱桃| 222www免费视频| 亚洲人成电影网站色www| 亚洲v国产v天堂a无码久久| a在线观看免费网址大全| 久久亚洲熟女cc98cm| 免费观看的毛片大全| 国产精品亚洲精品日韩电影| 亚洲真人无码永久在线 | 污视频网站免费在线观看| 亚洲国产婷婷香蕉久久久久久| 国产免费区在线观看十分钟| 亚洲黄色网址在线观看| 我要看WWW免费看插插视频| 香港经典a毛片免费观看看| 久久亚洲综合色一区二区三区| 国产精品成人观看视频免费 | 亚洲AV美女一区二区三区| 四虎免费影院ww4164h| 午夜亚洲国产精品福利| 亚洲av一综合av一区| 四虎影院免费在线播放|