Skip to content

Commit

Permalink
Update NodeTreeView.java
Browse files Browse the repository at this point in the history
  • Loading branch information
i-make-robots committed Dec 28, 2023
1 parent 95bef09 commit 24cf1f7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,13 @@ private void setupTree() {
}

private void changeSelection(TreeSelectionEvent e) {
// if this is an external change, we are being told about a change to Registry.selection.
// we don't want to concurrently modify Registry.selection, so ignore this event.
if(isExternalChange) return;

// this is an internal change, so we need to tell Registry.selection about it.
// TreeSelectionEvent.getPaths() contains the list of all the currently selected rows
// in the tree.
Registry.selection.removeAll();
removeNode.setEnabled(false);
// handle many selections
Expand Down

0 comments on commit 24cf1f7

Please sign in to comment.