There are 1 code examples for org.eclipse.core.resources.IFolder.
The API names are highlighted below.
You can use
button
to vote the code example(s) you like. The best code example will be ranked first next time. Thanks a lot for your feedback.
Project Name: codecover Package: org.codecover.eclipse.tscmanager
Source Code: TSContainerStorage.java (Click to view .java file)
Method Code:
/**
* Fetches all files of test session containers of the given projects. It is guaranteed that the returned
* list only contains files (<code>IFile</code>s), however these files don't have to contain test
* session containers.
* @param projects the projects to fetch the files from
* @return all files of test session containers of the given projects which are currently in the workspace.
*/
private static List<IFile> fetchTSCFiles(IProject[] projects){
List<IFile> tscFiles=new LinkedList<IFile>();
IFolder codeCoverFolder;
IResource[] directChildren;
for ( IProject project : projects) {
if (project.isOpen()) {
codeCoverFolder=project.getFolder(CodeCoverPlugin.CODECOVER_FOLDER);
if (codeCoverFolder.exists()) {
try {
directChildren=codeCoverFolder.members();
}
catch ( CoreException e) {
continue;
}
for ( IResource file : directChildren) {
if (file instanceof IFile) {
tscFiles.add((IFile)file);
}
}
}
}
}
return tscFiles;
}