精彩的人生

          好好工作,好好生活

          BlogJava 首頁 新隨筆 聯(lián)系 聚合 管理
            147 Posts :: 0 Stories :: 250 Comments :: 0 Trackbacks

          常用鏈接

          留言簿(43)

          隨筆分類

          隨筆檔案

          相冊

          收藏夾

          Friends

          Web Site

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜


          在rcp中獲取文件:

              得到Appliaction workspace, Platform.asLocalURL(PRODUCT_BUNDLE.getEntry("")).getPath()).getAbsolutePath();
              得到runtimeworkspace, Platform.getInstanceLocation().getURL().getPath();

          通過EditorInput來得到工程的絕對路徑:

              ((IFileEditorInput)input).getFile().getLocation().makeAbsolute().toFile().getAbsoluteFile().getParentFile();

          通過父EditPart得到編輯器的方法(GEF):

              IEditorPart editor = ((DefaultEditDomain)(parent.getViewer().getEditDomain())).getEditorPart();

          posted on 2005-12-13 11:51 hopeshared 閱讀(1075) 評論(0)  編輯  收藏 所屬分類: Eclipse
          主站蜘蛛池模板: 永川市| 抚顺市| 阿瓦提县| 洱源县| 建宁县| 蒙山县| 和龙市| 西和县| 寻乌县| 玉环县| 武鸣县| 海安县| 略阳县| 洪洞县| 吴江市| 资兴市| 临沧市| 色达县| 九龙坡区| 柳江县| 万州区| 醴陵市| 合山市| 九龙县| 青铜峡市| 自贡市| 鄱阳县| 富裕县| 彩票| 东乡族自治县| 沁阳市| 合水县| 大竹县| 延吉市| 新龙县| 读书| 宿迁市| 岑溪市| 大方县| 五峰| 平邑县|