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

Method addSelectionPath

unused/javax/swing/JTree.java:1752–1754  ·  view source on GitHub ↗

Adds the node identified by the specified TreePath to the current selection. If any component of the path isn't viewable, and getExpandsSelectedPaths is true it is made viewable. Note that JTree does not allow duplicate nodes to exist as children under the

(TreePath path)

Source from the content-addressed store, hash-verified

1750 * @param path the <code>TreePath</code> to add
1751 */
1752 public void addSelectionPath(TreePath path) {
1753 getSelectionModel().addSelectionPath(path);
1754 }
1755
1756 /**
1757 * Adds each path in the array of paths to the current selection. If

Callers 8

setExpandedStateMethod · 0.95
addSelectionPathsMethod · 0.80
mouseClickedMethod · 0.80

Calls 1

getSelectionModelMethod · 0.95

Tested by

no test coverage detected