學無止境 |
|
|||
日歷
統計
導航常用鏈接留言簿(2)隨筆分類隨筆檔案搜索最新評論
閱讀排行榜評論排行榜 |
There is an example of creating linked resources in code.
IProject project = workspace.getProject("Project");//assume this exists 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"
|
![]() |
|
Copyright © lucia | Powered by: 博客園 模板提供:滬江博客 |