<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 閱讀(265) 評論(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);

     

    主站蜘蛛池模板: 东北美女野外bbwbbw免费| 亚洲精品在线不卡| 一级成人a做片免费| 国产免费av片在线播放| 亚洲男同gay片| 宅男666在线永久免费观看| 国产精品亚洲一区二区三区 | 亚洲熟妇无码一区二区三区| 亚洲成人在线免费观看| 亚洲视频一区在线观看| 久操视频在线免费观看| 久久亚洲精精品中文字幕| 99re免费在线视频| 亚洲香蕉在线观看| 日韩一区二区免费视频| 色老头综合免费视频| 综合亚洲伊人午夜网| 99在线免费观看视频| 亚洲精品美女网站| 国产一区二区三区在线免费 | 国产成人精品日本亚洲| 69免费视频大片| 伊人久久五月丁香综合中文亚洲| 国产99久久久国产精免费| 黑人大战亚洲人精品一区| 在线看片免费人成视频播| 亚洲三级在线免费观看| 国产极品粉嫩泬免费观看| 好猛好深好爽好硬免费视频| 亚洲色欲www综合网| 日本特黄a级高清免费大片| 一区二区三区免费视频网站| 亚洲综合色丁香麻豆| 国产青草视频免费观看97 | 午夜dj免费在线观看| 免费无码午夜福利片| 亚洲AV无码成人精品区天堂| 韩国免费一级成人毛片| 一级做a爱片特黄在线观看免费看| 午夜dj免费在线观看| a级大片免费观看|