コード例 #1
0
 @Override
 protected void onNodeStateChanged(CheckedTreeNode node) {
   final List<DetectedFrameworkDescription> checked =
       Arrays.asList(getCheckedNodes(DetectedFrameworkDescription.class, null));
   final List<DetectedFrameworkDescription> disabled =
       FrameworkDetectionUtil.getDisabledDescriptions(
           checked, Collections.<DetectedFrameworkDescription>emptyList());
   for (DetectedFrameworkDescription description : disabled) {
     final DefaultMutableTreeNode treeNode = TreeUtil.findNodeWithObject(getRoot(), description);
     if (treeNode instanceof CheckedTreeNode) {
       ((CheckedTreeNode) treeNode).setChecked(false);
     }
   }
 }
コード例 #2
0
 public void addSubtreeToUpdate(final PackagingElementNode elementNode) {
   final DefaultMutableTreeNode node = TreeUtil.findNodeWithObject(getRootNode(), elementNode);
   if (node != null) {
     addSubtreeToUpdate(node);
   }
 }