學無止境  
          日歷
          <2005年10月>
          2526272829301
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345
          統計
          • 隨筆 - 9
          • 文章 - 0
          • 評論 - 2
          • 引用 - 0

          導航

          常用鏈接

          留言簿(2)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

           
          There is an example of creating linked resources in code.
          IProject project = workspace.getProject("Project");//assume this exists
          IFolder link = project.getFolder("Link");
          IPath location = new Path("C:\TEMP\folder");
          if (workspace.validateLinkLocation(location).isOK()) {
          link.createLink(location, IResource.NONE, null);
          } else {
          //invalid location, throw an exception or warn user
          }

          This example will create a linked folder called "Link" that is located at "c:\temp\folder".

          link.getFullPath() => "/Project/Link"
          link.getLocation() => "c:\temp\folder"
          link.getRawLocation() => "temp/folder"
          link.isLinked() => "true"
          IFile child = link.getFile("abc.txt");
          child.create(...);
          child.getFullPath() => "/Project/Link/abc.txt"
          child.getLocation() => "c:\temp\folder\abc.txt"
          child.getRawLocation() => "c:\temp\folder\abc.txt"
          child.isLinked() => "false"

          posted on 2005-10-17 05:25 lucia 閱讀(843) 評論(0)  編輯  收藏 所屬分類: Eclipse Plugin
           
          Copyright © lucia Powered by: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 德格县| 锡林郭勒盟| 溧阳市| 稻城县| 通州市| 河池市| 馆陶县| SHOW| 巴彦淖尔市| 长顺县| 南木林县| 榆中县| 行唐县| 南投县| 嵊泗县| 宣化县| 玛沁县| 新密市| 乐安县| 宝丰县| 洮南市| 大荔县| 德庆县| 和林格尔县| 积石山| 新津县| 邯郸县| 大新县| 彰武县| 大埔县| 门源| 德安县| 营山县| 太白县| 宣化县| 长岭县| 依安县| 尚志市| 灌云县| 遂昌县| 开封县|