public List<List<String>> computeSelectedPaths(){
  List<List<String>> selectedPaths=new ArrayList<>();
  for (int i=0, n=selectedNodes.size(); i < n; i++) {
    D nodeData=selectedNodes.get(i);
    selectedPaths.add(dataAdapter.getNodePath(nodeData));
  }
  return selectedPaths;
}

public List < List < String > > computeSelectedPaths ( ) { List < List < String > > selectedPaths = new ArrayList < > ( ) ; for ( int i = 0 , n = selectedNodes . size ( ) ; i < n ; i ++ ) { D nodeData = selectedNodes . get ( i ) ; selectedPaths . add ( dataAdapter . getNodePath ( nodeData ) ) ; } return selectedPaths ; }
restores visual selection for all selected nodes tracked by the selectionmodel .
