超越自我

          一切皆有可能

           

          添加自己的擴展點

          1.需求
          core1.JPG

          現在有plugin A,plugin B,plugin C,plugin Core 4個插件,要求設計plugin A,plugin B,plugin C 采用一個注冊機制,
          當plugin Core 運行時候自動加載plugin A,plugin B,plugin C 的module接口 ,將其自動注冊到plugin Core 的
          ProjectModuleViewer窗口中,并可以對其操作.
          由于workbench 采用的是LAZY模式,只有對plugin A,plugin B,plugin C各自運行才執行各自的插件,所以在同時
          runtime中無法獲得他們的module.
          故采用插件的新建擴展點
          <extension-point  name="myextension"  id="myextension"/>
          plugin A,plugin B,plugin C分別實現這個擴展點.
          ProjectModuleViewer窗口自動裝入擴展點.

          posted on 2005-11-03 18:18 jame 閱讀(570) 評論(1)  編輯  收藏 所屬分類: Eclipse plugin Extension points擴展點

          評論

          # re: 添加自己的擴展點 2007-10-29 21:10 fxfx

          版主,
          咋沒有寫完啊,就寫了這么點來忽悠人啊  回復  更多評論   


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          導航

          統計

          常用鏈接

          留言簿(3)

          隨筆檔案

          文章分類

          文章檔案

          相冊

          收藏夾

          UML

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 道真| 德化县| 岑巩县| 隆子县| 湘潭市| 太康县| 高台县| 林甸县| 铜梁县| 东方市| 仁化县| 山西省| 万安县| 广德县| 宣城市| 正蓝旗| 龙井市| 灌南县| 台东市| 会宁县| 维西| 遂溪县| 福州市| 崇文区| 江川县| 诸城市| 徐水县| 石屏县| 吕梁市| 凭祥市| 保亭| 株洲市| 汉中市| 祁门县| 广州市| 青河县| 扎兰屯市| 响水县| 上蔡县| 永顺县| 祁连县|