Author: vpakan(a)redhat.com
Date: 2010-01-07 02:45:50 -0500 (Thu, 07 Jan 2010)
New Revision: 19672
Modified:
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTEclipseExt.java
Log:
Fix addServerRuntime() method to be working with older SWTBot version
Modified:
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTEclipseExt.java
===================================================================
---
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTEclipseExt.java 2010-01-07
07:44:34 UTC (rev 19671)
+++
trunk/jst/tests/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTEclipseExt.java 2010-01-07
07:45:50 UTC (rev 19672)
@@ -264,7 +264,7 @@
}
/**
- * Wait for appereance shell of given name
+ * Wait for appearance shell of given name
* @param shellName
*/
public void waitForShell(String shellName) {
@@ -359,8 +359,8 @@
int numRows = tbRuntimeEnvironments.rowCount();
if (numRows > 0){
int currentRow = 0;
- while (createRuntime && numRows < currentRow){
- if
(tbRuntimeEnvironments.getTableItem(currentRow).getText(0).equalsIgnoreCase(runtimeName)){
+ while (createRuntime && currentRow < numRows){
+ if (tbRuntimeEnvironments.cell(currentRow, 0).equalsIgnoreCase(runtimeName)){
createRuntime = false;
}
else {
@@ -377,9 +377,8 @@
bot.textWithLabel(IDELabel.JBossServerRuntimeDialog.NAME).setText(runtimeName);
bot.textWithLabel(IDELabel.JBossServerRuntimeDialog.HOME_DIRECTORY).setText(runtimeHomeDir);
bot.button(IDELabel.Button.FINISH).click();
- bot.button(IDELabel.Button.OK).click();
}
-
+ bot.button(IDELabel.Button.OK).click();
}
/**
* Test if tree contains item with itemLabel
Show replies by date