TableItemLocator tiloc = new TableItemLocator("Value");
tiloc.isSelected(ui);
Always return false even if TableItem is in selected state. It was working as expected with previous version.
Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund
ui.assertThat(tiloc.isSelected());
TableItemLocator cvsLocator = new TableItemLocator("CVS");
IWidgetReference ref = (IWidgetReference) ui.find(cvsLocator);
final Widget widget = (Widget) ref.getWidget();
final boolean[] result = new boolean[1];
Display.getDefault().syncExec(new Runnable() {
@Override
public void run() {
if (widget instanceof TableItem){
TableItem item = (TableItem) widget;
result[0] = item.getChecked();
}
}
});
if(!result[0]){
ui.click(1,cvsLocator, WT.CHECK);
}
Users browsing this forum: No registered users and 1 guest