0

Is there any way to populate table viewer on combo box value selection using SWT/Jface databinding?

Baz
  • 34,567
  • 11
  • 66
  • 88
Prashant P
  • 11
  • 4
  • 6
    What have you tried? What research have you done. Can you post an isolated code snipped indicating exactly where your problem is. – EdC Nov 24 '12 at 09:03

1 Answers1

1

You will not use JFace databinding with this solution but I hope you will find what you want :

Use a ComboViewer with your TableViewer and do something like :

comboViewer.addSelectionChangedListener(new ISelectionChangedListener() {

    @Override
    public void selectionChanged(SelectionChangedEvent event) {
         tableViewer.setInput(event.getSelection());
         tableViewer.refresh();
    }
});
l1sq0u48
  • 371
  • 1
  • 12