コード例 #1
0
 public void processUncheckedNodes(
     @NotNull final Consumer<DetectedFrameworkTreeNodeBase> consumer) {
   TreeUtil.traverse(
       getRoot(),
       node -> {
         if (node instanceof DetectedFrameworkTreeNodeBase) {
           final DetectedFrameworkTreeNodeBase frameworkNode =
               (DetectedFrameworkTreeNodeBase) node;
           if (!frameworkNode.isChecked()) {
             consumer.consume(frameworkNode);
           }
         }
         return true;
       });
 }
コード例 #2
0
 @Override
 public void customizeRenderer(
     JTree tree,
     Object value,
     boolean selected,
     boolean expanded,
     boolean leaf,
     int row,
     boolean hasFocus) {
   if (value instanceof DetectedFrameworkTreeNodeBase) {
     ((DetectedFrameworkTreeNodeBase) value).renderNode(getTextRenderer());
   }
 }