嘟嘟

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            26 Posts :: 0 Stories :: 6 Comments :: 0 Trackbacks
          org.eclipse.ui.PartInitException: Unable to open editor, unknown editor ID 錯誤
          Eclipse3.2M6以后,Editor在plugin.xml里注冊時,必須帶icon參數(shù)
          <extension
                   id="gef.tutorial.step.ui.DiagramEditor">
                <editor
                   id="gef.tutorial.step.ui.DiagramEditor"
                   name="Diagram Editor"
                   icon=""
                   class="gef.tutorial.step.ui.DiagramEditor"
                   default="false">
                </editor> 
           </extension>

          在對應(yīng)action中得run函數(shù)中打開編輯器.
             IEditorInput input = new DiagramEditorInput(new Path(path));
             IWorkbenchPage page = window.getActivePage();
             try {
              page.openEditor(input, DiagramEditor.ID, true);
             } catch (PartInitException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
             }
          posted on 2007-05-09 12:39 fyp1210 閱讀(1005) 評論(0)  編輯  收藏 所屬分類: RCP&SWT&JFACE
          主站蜘蛛池模板: 峨眉山市| 仙居县| 株洲市| 柳河县| 米易县| 大埔县| 蒙城县| 景德镇市| 苏尼特右旗| 彭泽县| 宜黄县| 临汾市| 佛冈县| 银川市| 胶州市| 怀集县| 雷山县| 藁城市| 习水县| 察哈| 张北县| 洞头县| 漳浦县| 肥东县| 射阳县| 徐州市| 吉林省| 左权县| 东丽区| 渑池县| 杭州市| 重庆市| 隆安县| 新巴尔虎右旗| 丰台区| 乾安县| 金阳县| 乌兰浩特市| 满洲里市| 高州市| 涞水县|