學無止境  
          日歷
          <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: 博客園 模板提供:滬江博客
          主站蜘蛛池模板: 牙克石市| 穆棱市| 普陀区| 邳州市| 和顺县| 宁南县| 新兴县| 镇原县| 灵山县| 兴文县| 白沙| 潮州市| 北川| 佛坪县| 庆阳市| 和静县| 景东| 江油市| 汤阴县| 双峰县| 和平县| 邵阳县| 祁阳县| 将乐县| 青铜峡市| 应用必备| 潼关县| 会理县| 连江县| 油尖旺区| 正宁县| 淮滨县| 乌兰察布市| 泌阳县| 六枝特区| 蓬溪县| 黎平县| 大港区| 绥芬河市| 肇庆市| 越西县|