1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

Add id to table items so SWTBot tests can find them.

Change-Id: I6f7f878af357b21fa6f07d2d35643f0c6490e97a
This commit is contained in:
Doug Schaefer 2017-10-04 20:17:18 -04:00
parent db4acb2bb5
commit 3d04ec0c94

View file

@ -64,6 +64,8 @@ public class TemplateTable implements Listener {
for (Template template : sorted) {
TableItem item = new TableItem(table, SWT.NONE);
item.setData(template);
// Since we have nothing to help SWTBot find items, store the label
item.setData("org.eclipse.swtbot.widget.key", template.getLabel()); //$NON-NLS-1$
}
}