From 3d04ec0c942485de63e542f4018aa34cb813684c Mon Sep 17 00:00:00 2001 From: Doug Schaefer Date: Wed, 4 Oct 2017 20:17:18 -0400 Subject: [PATCH] Add id to table items so SWTBot tests can find them. Change-Id: I6f7f878af357b21fa6f07d2d35643f0c6490e97a --- .../org/eclipse/tools/templates/ui/internal/TemplateTable.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bundles/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/internal/TemplateTable.java b/bundles/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/internal/TemplateTable.java index 0aaf7c8147c..719e4681a3b 100644 --- a/bundles/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/internal/TemplateTable.java +++ b/bundles/org.eclipse.tools.templates.ui/src/org/eclipse/tools/templates/ui/internal/TemplateTable.java @@ -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$ } }