0

I have a view with a TableViewer of cities. I also have another view with a TreeViewer of persons. Can someone explain or give me a tip on how can I update the TreeViewer with persons from the city selected in TableViewer using adapter factory?

flavio.donze
  • 7,432
  • 9
  • 58
  • 91

1 Answers1

0

it's completely necessary to use an adapter factory?

You could add a SelectionChangedListener in the CityTreeViewer (maybe if the query of people from one city is expensive you can add a PostSelectionChangedListener) to update the input of the TreeViewer of People when the selection treeViewer of City changed.

flavio.donze
  • 7,432
  • 9
  • 58
  • 91
mreparaz
  • 129
  • 6