releng: Add SWTBot integration tests
[deliverable/tracecompass.git] / ctf / org.eclipse.tracecompass.tmf.ctf.ui.swtbot.tests / src / org / eclipse / tracecompass / tmf / ctf / ui / swtbot / tests / SWTBotImportWizardUtils.java
index 14ae8c17f67313447cae766f17274f1566871d52..4f571f8812c8e599995f30e14953eb8c0c53087f 100644 (file)
@@ -50,8 +50,10 @@ public final class SWTBotImportWizardUtils {
 
         SWTBotCombo sourceCombo = bot.comboBox();
         File traceFolderParent = new File(directoryPath);
+        sourceCombo.setFocus();
         sourceCombo.setText(traceFolderParent.getAbsolutePath());
 
+        /* the resource tree gets updated when the combo loses focus */
         SWTBotText text = bot.text();
         text.setFocus();
     }
@@ -70,8 +72,10 @@ public final class SWTBotImportWizardUtils {
 
         SWTBotCombo sourceCombo = bot.comboBox(1);
 
+        sourceCombo.setFocus();
         sourceCombo.setText(new File(archivePath).getAbsolutePath());
 
+        /* the resource tree gets updated when the combo loses focus */
         SWTBotText text = bot.text();
         text.setFocus();
     }
This page took 0.023703 seconds and 5 git commands to generate.