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

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Wed Apr 6 08:50:14 EDT 2011


Author: lzoubek at 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) {



More information about the jbosstools-commits mailing list