I have A JFace Wizard which has a page with a tableViewer.
I need to select elements from the table so I have to make the selection available in the table.
If I was in a ViewPart, I would do:
I saw that in the Wizard I can't access to a WorkbenchPart to call the setSelectionProvide method.
I can't use the getSelection from the SWT table gotten from the viewer, but I need the object of my model (i.e. the IStructuredSelection from the viewer). The TableItem selected from the SWT Table is insufficiet.
You can try using this method from the viewer
org.eclipse.jface.viewers.StructuredViewer.getSelection(). It will return you a StructuredSelection containing the array of selected models from your table.