using adapter to retrieve treenode from selection.