Examples of VulnerabilitiesTableModel


Examples of com.denimgroup.threadfix.plugins.intellij.toolwindow.VulnerabilitiesTableModel

        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());
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.