[jbosstools-commits] JBoss Tools SVN: r39255 - 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
Fri Mar 2 07:35:10 EST 2012


Author: vpakan at redhat.com
Date: 2012-03-02 07:35:09 -0500 (Fri, 02 Mar 2012)
New Revision: 39255

Modified:
   trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/OpenOnHelper.java
Log:
Fixes for 3.3.0.Beta1

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-03-02 11:32:10 UTC (rev 39254)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/OpenOnHelper.java	2012-03-02 12:35:09 UTC (rev 39255)
@@ -18,6 +18,8 @@
 import org.apache.log4j.Logger;
 import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEclipseEditor;
 import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEditor;
+import org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable;
+import org.eclipse.swtbot.swt.finder.results.VoidResult;
 import org.jboss.tools.ui.bot.ext.SWTBotExt;
 import org.jboss.tools.ui.bot.ext.SWTJBTExt;
 import org.jboss.tools.ui.bot.ext.SWTUtilExt;
@@ -57,8 +59,13 @@
     bot.sleep(Timing.time1S());
 
     KeyboardHelper.typeKeyCodeUsingAWT(KeyEvent.VK_F3);
-
-    bot.sleep(Timing.time1S());
+    // process UI Events 
+    UIThreadRunnable.syncExec(new VoidResult() {
+      @Override
+      public void run() {
+      }
+    });
+    bot.sleep(Timing.time3S());
     new SWTUtilExt(bot).waitForNonIgnoredJobs();
 
     openedEditor = bot.activeEditor();



More information about the jbosstools-commits mailing list