public ISolutionFile[] listFiles(final IFileFilter filter) { List matchedFiles = new ArrayList(); Object[] objArray = getChildrenFiles().toArray(); for (Object element : objArray) { if (filter.accept((ISolutionFile) element)) { matchedFiles.add(element); } } return (ISolutionFile[]) matchedFiles.toArray(new ISolutionFile[] {}); }
@Override public boolean accept(IRepositoryFile isf) { return fileFilter.accept(((PentahoRepositoryFile) isf).getSolutionFile()); }