添加自己的擴展點
1.需求現(xiàn)在有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各自運行才執(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 閱讀(571) 評論(1) 編輯 收藏 所屬分類: Eclipse plugin Extension points擴展點