* @param includeClassfiles include compilation units availabile as .class files
* @return the list of all CompilationUnits in the workspace or
* <code>null</code> if no comp units were found.
*/
public static List<ITypeRoot> scanForCompilationUnits(boolean includeClassfiles) {
IWorkspace workspace = ResourcesPlugin.getWorkspace();
if(workspace == null) {
log.warning("No workspace");
return null;
}
IWorkspaceRoot root = workspace.getRoot();
if(root == null) {
log.warning("No workspace root");
return null;
}
IJavaModel javaModel = JavaCore.create(root);