Is there any way to populate table viewer on combo box value selection using SWT/Jface databinding?
Asked
Active
Viewed 695 times
0
-
6What 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 Answers
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();
}
});
![](../../users/profiles/1791093.webp)
l1sq0u48
- 371
- 1
- 12