超越自我

          一切皆有可能

           

          添加自己的擴展點

          1.需求
          core1.JPG

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

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

          評論

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

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


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


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

          導(dǎo)航

          統(tǒng)計

          常用鏈接

          留言簿(3)

          隨筆檔案

          文章分類

          文章檔案

          相冊

          收藏夾

          UML

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 金堂县| 土默特右旗| 云浮市| 杭锦后旗| 银川市| 蒙自县| 汪清县| 龙里县| 依安县| 安阳市| 贵定县| 湾仔区| 航空| 新源县| 吉林市| 北宁市| 张家港市| 扎赉特旗| 左权县| 永昌县| 四会市| 桦南县| 出国| 昌平区| 景洪市| 盱眙县| 台中市| 鄱阳县| 城固县| 井冈山市| 彰化县| 义乌市| 桂平市| 贵南县| 交城县| 靖宇县| 泗洪县| 沭阳县| 和龙市| 洪洞县| 密云县|