public void addFiles(final FileManager fileManager) { tableItems.clear(); for (final FileInfo fileInfo : fileManager.getMap().keySet()) { addFile(fileManager, fileInfo); } }
public void addFile(final FileManager fileManager, final FileInfo fileInfo) { if (fileManager == null || fileInfo == null) { label.setText("-"); } else { final List<String> paths = fileManager.getMap().get(fileInfo); for (final String path : paths) { final FileInfoPath fileInfoPath = new FileInfoPath(fileInfo, path); tableItems.add(fileInfoPath); } label.setText("File Count: " + paths.size()); } }