Examples of BugInstanceGroupNode


Examples of org.twodividedbyzero.idea.findbugs.gui.tree.model.BugInstanceGroupNode

        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);

        if (expanded) {
          final Icon expandedIcon = groupNode.getExpandedIcon();
          ((MaskIcon) expandedIcon).setColorPainted(selected);
          setIcon(expandedIcon);
        } else {
          final Icon collapsedIcon = groupNode.getCollapsedIcon();
          ((MaskIcon) collapsedIcon).setColorPainted(selected);
          setIcon(collapsedIcon);
        }

        setToolTipText(groupNode.getTooltip());
        setTitle(groupNode.getSimpleName());
        final int memberCount = groupNode.getMemberCount();
        setHits("(" + memberCount + (memberCount == 1 ? " item" : " items") + ')');

      } else {
        setIcon(null);
      }
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.