@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); } } }
public void addSubtreeToUpdate(final PackagingElementNode elementNode) { final DefaultMutableTreeNode node = TreeUtil.findNodeWithObject(getRootNode(), elementNode); if (node != null) { addSubtreeToUpdate(node); } }