[jbosstools-commits] JBoss Tools SVN: r43959 - trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Mon Sep 24 08:06:28 EDT 2012


Author: vpakan at redhat.com
Date: 2012-09-24 08:06:28 -0400 (Mon, 24 Sep 2012)
New Revision: 43959

Modified:
   trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/OpenOnHelper.java
Log:
Wait for non ignored processes to finish before OpenOn if activated.

Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/OpenOnHelper.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/OpenOnHelper.java	2012-09-24 11:48:50 UTC (rev 43958)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/OpenOnHelper.java	2012-09-24 12:06:28 UTC (rev 43959)
@@ -55,8 +55,14 @@
     bot.sleep(Timing.time1S());
 
     sourceEditor.setFocus();
-
+    // process UI Events 
+    UIThreadRunnable.syncExec(new VoidResult() {
+      @Override
+      public void run() {
+      }
+    });
     bot.sleep(Timing.time1S());
+    new SWTUtilExt(bot).waitForNonIgnoredJobs();
 
     KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_F3);
     // process UI Events 



More information about the jbosstools-commits mailing list