private Source findFolder(String prefix, BinCIType type) { CompilationUnit compilationUnit = type.getCompilationUnit(); if (compilationUnit == null) { return null; } return findParent(prefix, compilationUnit.getSource()); }
private void findFolders(String prefix, BinPackage aPackage, Set result) { for (Iterator i = aPackage.getAllTypes(); i.hasNext(); ) { BinCIType type = ((BinTypeRef) i.next()).getBinCIType(); Source folder = findFolder(prefix, type); if (folder != null) { result.add(folder); } else { getSourcesInWrongFolders().add(type.getCompilationUnit().getSource()); } } }