private void tableSummaryValueChanged(javax.swing.event.TreeSelectionEvent evt) {//GEN-FIRST:event_tableSummaryValueChanged
int row = tableSummary.getSelectedRow();
if (row != -1) {
Object selectedNode = tableSummary.getPathForRow(row).getLastPathComponent();
showRuleInfoAction.setEnabled(selectedNode instanceof Rule);
Summary summary = ((SummaryModel) tableSummary.getTreeTableModel()).getSummary();
int count;
if (selectedNode instanceof Summary) {
count = summary.getCount();
} else if (selectedNode instanceof Severity) {
count = summary.getCount((Severity) selectedNode);
} else if (selectedNode instanceof Rule) {
count = summary.getCount((Rule) selectedNode);
} else {
count = 0;
}
listIssuesAction.setEnabled(count > 0);
} else {