MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / removeDescendantSelectedPaths

Method removeDescendantSelectedPaths

unused/javax/swing/JTree.java:3725–3734  ·  view source on GitHub ↗

Removes any paths in the selection that are descendants of path . If includePath is true and path is selected, it will be removed from the selection. @return true if a descendant was selected @since 1.3

(TreePath path,
                                                    boolean includePath)

Source from the content-addressed store, hash-verified

3723 * @since 1.3
3724 */
3725 protected boolean removeDescendantSelectedPaths(TreePath path,
3726 boolean includePath) {
3727 TreePath[] toRemove = getDescendantSelectedPaths(path, includePath);
3728
3729 if (toRemove != null) {
3730 getSelectionModel().removeSelectionPaths(toRemove);
3731 return true;
3732 }
3733 return false;
3734 }
3735
3736 /**
3737 * Returns an array of paths in the selection that are descendants of

Callers 3

setExpandedStateMethod · 0.95
treeStructureChangedMethod · 0.80
treeNodesRemovedMethod · 0.80

Calls 6

getSelectionModelMethod · 0.95
getModelMethod · 0.95
getChildrenMethod · 0.80
removeSelectionPathsMethod · 0.45
getTreePathMethod · 0.45

Tested by

no test coverage detected