for (Set<VirtualFile> fileSet : map.values()) {
removeAll(fileSet, project);
}
VulnerabilitiesTableModel tableModel = ThreadFixWindowFactory.getTableModel();
tableModel.clear();
tableModel.initVirtualFiles(markers.size());
tableModel.setProject(project);
for (VulnerabilityMarker marker : markers) {
String shortClassName = getShortClassName(marker);
if (map.containsKey(shortClassName)) {
if (addRenderer) {
MarkupModel model = getMarkupModel(map, shortClassName, project);
addRenderers(marker, model);
}
// TODO clean up
tableModel.setVirtualFileAt(tableModel.getRowCount(),
map.get(shortClassName).iterator().next());
tableModel.addRow(toStringArray(marker));
} else {
log.info("Failed to attach marker to class " + shortClassName + ", full path was " + marker.getFilePath());
}
}
}