編程生活

             :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            113 隨筆 :: 0 文章 :: 18 評論 :: 0 Trackbacks

          原來的文章寫得比較復雜,其實現在eclipse 3.3中有更簡單的辦法

          <extension
                   id="rmp.idc.dr.Perspective"
                   point="org.eclipse.ui.perspectives">
                <perspective
                      class="xxx.Perspective"
                      icon="icons/releng_gears.gif"
                      id="xxx.Perspective"
                      name="xxx管理">
                </perspective>
             </extension>
            <!--此處定義與該透視圖相關聯的菜單
             <extension
                   point="org.eclipse.ui.perspectiveExtensions">
                <perspectiveExtension
                      targetID="xxx.Perspective">
                   <actionSet
                         id="xxx.gui.eee">
                   </actionSet>
                </perspectiveExtension>
             </extension>
             <extension
                   point="org.eclipse.ui.actionSets">
                <actionSet
                      id="xxx.gui.eee"
                      label="菜單1"
                     visible="false">
                   <menu
                         id="device"
                         label="設備[&amp;D]"
                         path="detail">
                      <groupMarker
                            name="new">
                      </groupMarker>
                      <separator
                            name="view">
                      </separator>
                   </menu>
          posted on 2007-11-27 20:43 wilesun 閱讀(490) 評論(0)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 延川县| 易门县| 启东市| 综艺| 浑源县| 交口县| 泸溪县| 葫芦岛市| 枝江市| 梧州市| 象山县| 清流县| 化州市| 莎车县| 古浪县| 彭水| 庆城县| 涞源县| 贡觉县| 天等县| 盱眙县| 固安县| 罗平县| 海宁市| 汽车| 喜德县| 赣州市| 金昌市| 新建县| 威远县| 开鲁县| 武陟县| 靖远县| 南安市| 宜都市| 昂仁县| 西贡区| 玉龙| 泽库县| 石屏县| 综艺|