Hello,
we have in one of our shells three "tables". To be more precise, they are implemented as a TableViewer (org.eclipse.jface.viewers.TableViewer). They use TableViewerColumns. Each cell of that table view uses "magic combo boxes". They are implemented with the method .setEditingSupport:
ComboLabelProvider comboLabelProvider = new ComboLabelProvider();
view.tvcFirstDay.setEditingSupport(new ComboBoxCellEditingSupport(view.tvSchedule, dbc, propFirstDayShift,//
comboLabelProvider, model.getAvailableShifts().toArray()));
With this I cannot name the combo boxes. Hence, the NamedWidgetLocator is useless in my situation. Currently I have my own methods which get respectively set the cell values directly. But to have a good test I'd prefer to use the comboboxes.
Is there any way to get this done?
Thanks in advance!
Göksel
P.S.: Some pieces of information about my own methods. As I mentioned we use three tables in that shell. So the TableCellLocator throws an exception that multiple widgets are found. Thus I use ui.findAll(new SWTWidgetLocator(Table.class) to get all three table references from which I take the one with the table name that was asked for. Then I get the row by table.getItem(row) followed by the column using item.getText(column). I do the same for the set method.
... so a "NamedTableCellLocator" would be fine for a next version!