Author: lzoubek(a)redhat.com
Date: 2011-04-06 08:50:13 -0400 (Wed, 06 Apr 2011)
New Revision: 30370
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/wizards/SWTBotWizard.java
Log:
swtbotext: SWTBotWizard stringsreplaced by constants
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/wizards/SWTBotWizard.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/wizards/SWTBotWizard.java 2011-04-06
12:40:43 UTC (rev 30369)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/wizards/SWTBotWizard.java 2011-04-06
12:50:13 UTC (rev 30370)
@@ -14,6 +14,7 @@
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotText;
import org.jboss.tools.ui.bot.ext.SWTTestExt;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
public class SWTBotWizard extends SWTBotShell {
@@ -32,21 +33,21 @@
}
public SWTBotWizard back() {
- clickButton("< Back");
+ clickButton(IDELabel.Button.BACK);
return this;
}
public SWTBotWizard next() {
- clickButton("Next >");
+ clickButton(IDELabel.Button.NEXT);
return this;
}
public void cancel() {
- clickButton("Cancel");
+ clickButton(IDELabel.Button.CANCEL);
}
public void finish() {
- clickButton("Finish");
+ clickButton(IDELabel.Button.FINISH);
}
protected void clickButton(String text) {