Author: psuchy
Date: 2012-10-10 04:28:05 -0400 (Wed, 10 Oct 2012)
New Revision: 44399
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/RuntimeDetectionPreferencesDialog.java
Log:
Test debugging on jenkins (MacOS)
Modified:
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/RuntimeDetectionPreferencesDialog.java
===================================================================
---
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/RuntimeDetectionPreferencesDialog.java 2012-10-10
08:08:50 UTC (rev 44398)
+++
trunk/runtime/tests/org.jboss.tools.runtime.as.ui.bot.test/src/org/jboss/tools/runtime/as/ui/bot/test/dialog/preferences/RuntimeDetectionPreferencesDialog.java 2012-10-10
08:28:05 UTC (rev 44399)
@@ -1,5 +1,6 @@
package org.jboss.tools.runtime.as.ui.bot.test.dialog.preferences;
+import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
import org.jboss.reddeer.eclipse.jface.preference.PreferencePage;
import org.jboss.reddeer.swt.api.Table;
import org.jboss.reddeer.swt.condition.JobIsRunning;
@@ -29,10 +30,16 @@
public SearchingForRuntimesDialog addPath(final String path){
RuntimeUIActivator.getDefault().getModel().addRuntimePath(new RuntimePath(path));
-
+ new WaitWhile(new JobIsRunning());
cancel();
new WaitWhile(new JobIsRunning());
- open();
+ try{
+ open();
+ }catch(WidgetNotAvailableException ex){
+ new WaitWhile(new JobIsRunning());
+ open();
+ }
+ new WaitWhile(new JobIsRunning());
return new SearchingForRuntimesDialog();
}
Show replies by date