Package org.twodividedbyzero.idea.findbugs.gui.tree.model

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


    _parent = parent;
    _project = project;
    _preferences = IdeaUtilImpl.getPluginComponent(project).getPreferences();
    _groupBy = GroupBy.getSortOrderGroup(GroupBy.BugCategory); // default sort oder group

    _visibleRootNode = new RootNode(_project.getName());
    _treeModel = new GroupTreeModel(_visibleRootNode, _groupBy, _project);

    //noinspection ThisEscapedInObjectConstruction
    _bugTree = new BugTree(_treeModel, this, _project);
View Full Code Here


        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);
View Full Code Here

TOP

Related Classes of org.twodividedbyzero.idea.findbugs.gui.tree.model.RootNode

Copyright © 2018 www.massapicom. 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.