嘟嘟

            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 閱讀(1005) 評(píng)論(0)  編輯  收藏 所屬分類: RCP&SWT&JFACE
          主站蜘蛛池模板: 新兴县| 体育| 万安县| 军事| 阿图什市| 社旗县| 铜山县| 黑水县| 通许县| 巴塘县| 桓仁| 五寨县| 安新县| 绥中县| 七台河市| 修武县| 休宁县| 莱芜市| 南昌市| 大冶市| 衡阳县| 永修县| 桓仁| 济源市| 桐乡市| 伊春市| 台湾省| 万盛区| 盐城市| 丰台区| 自贡市| 江西省| 会理县| 绥化市| 绥江县| 吉木乃县| 阜阳市| 昌邑市| 惠水县| 越西县| 甘孜|