setToolTipText(bugInstanceNode.getTooltip());
setTitle(bugInstanceNode.getSimpleName());
setHits("");
} else if (value instanceof RootNode) {
final RootNode rootNode = (RootNode) value;
if (expanded) {
final Icon expandedIcon = rootNode.getExpandedIcon();
((MaskIcon) expandedIcon).setColorPainted(selected);
setIcon(expandedIcon);
} else {
final Icon collapsedIcon = rootNode.getCollapsedIcon();
((MaskIcon) collapsedIcon).setColorPainted(selected);
setIcon(collapsedIcon);
}
setToolTipText(rootNode.getTooltip());
setTitle(rootNode.getSimpleName());
final int bugCount = rootNode.getBugCount();
final int classesCount = rootNode.getClassesCount();
setHits(bugCount == -1 ? "" : "(found " + bugCount + " bug items in " + classesCount + (classesCount == 1 ? " class)" : " classes)"));
setLinkHtml(rootNode.getLinkHtml());
} else if (value instanceof BugInstanceGroupNode) {
final BugInstanceGroupNode groupNode = (BugInstanceGroupNode) value;
//final TreePath path = tree.getPathForRow(row);