문제

What I need is API for getting all linked folders from the IProject programmatically. Any ideas?

도움이 되었습니까?

해결책

Call the isLinked() method of the IFolder (or any IResource) to test if it is a link.

You can use the accept(IResourceVistor) method of IProject to look at all its children to find all the folders.

You can also use accept(IResourceProxyVisitor) to do the scan which may be faster. The IResourceProxy interface this uses also has an isLinked() method.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top