超越自我

          一切皆有可能

           

          添加自己的擴(kuò)展點(diǎn)

          1.需求
          core1.JPG

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

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

          評論

          # re: 添加自己的擴(kuò)展點(diǎn) 2007-10-29 21:10 fxfx

          版主,
          咋沒有寫完啊,就寫了這么點(diǎn)來忽悠人啊  回復(fù)  更多評論   


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


          網(wǎng)站導(dǎo)航:
           

          導(dǎo)航

          統(tǒng)計(jì)

          常用鏈接

          留言簿(3)

          隨筆檔案

          文章分類

          文章檔案

          相冊

          收藏夾

          UML

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 新晃| 寻乌县| 金堂县| 宁波市| 丰台区| 连平县| 铁力市| 泌阳县| 乌苏市| 瑞金市| 遂宁市| 融水| 崇文区| 深州市| 七台河市| 繁昌县| 五华县| 始兴县| 资源县| 连州市| 鱼台县| 衡阳市| 舟山市| 广宗县| 时尚| 贵州省| 扬中市| 承德县| 安顺市| 海林市| 大方县| 辽源市| 贡嘎县| 修水县| 乐至县| 永昌县| 和林格尔县| 大名县| 九台市| 肇州县| 安溪县|