嘟嘟

            BlogJava :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
            26 Posts :: 0 Stories :: 6 Comments :: 0 Trackbacks
          org.eclipse.ui.PartInitException: Unable to open editor, unknown editor ID 錯(cuò)誤
          Eclipse3.2M6以后,Editor在plugin.xml里注冊(cè)時(shí),必須帶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>

          在對(duì)應(yīng)action中得run函數(shù)中打開(kāi)編輯器.
             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 閱讀(1001) 評(píng)論(0)  編輯  收藏 所屬分類: RCP&SWT&JFACE
          主站蜘蛛池模板: 汤原县| 平原县| 南充市| 阜新市| 贵南县| 甘谷县| 正定县| 贡山| 榆林市| 麦盖提县| 东安县| 上虞市| 阿坝| 大理市| 土默特右旗| 土默特左旗| 铁力市| 浪卡子县| 攀枝花市| 滨州市| 林周县| 晋中市| 库伦旗| 老河口市| 屏东市| 通河县| 二连浩特市| 平罗县| 花莲市| 全椒县| 辉县市| 红原县| 新兴县| 建水县| 礼泉县| 都昌县| 海丰县| 灯塔市| 高雄县| 黄冈市| 嘉荫县|