Working with SWT wizards
From AbbotWiki
[edit]
overview
TODO
[edit]
finding wizards
Colin C 08/24/2005 04:41:34 PM: >> Would there be any way to find the wizard/wizard page through >> abbot? Scott Symmank 08/25/2005 01:44:22 PM: > i have not found a way to get the actual Wizard instance. although, > abbot is intended to provide ways to get the components and widgets. > in the case of a wizard; a Label, usually, holds the title of the > current page in the dialog shell. > you might consider writing an
AbstractDialogTester (http://cvs.sourceforge.net/viewcvs.py/abbot/abbot.swt/src/abbot/tester/swt/AbstractDialogTester.java?rev=HEAD)
> for your wizard. you would probably extend
BaseFinishCancelDialogTester (http://cvs.sourceforge.net/viewcvs.py/abbot/abbot.swt.eclipse/src/abbot/tester/swt/eclipse/BaseFinishCancelDialogTester.java?rev=HEAD)
> in the abbot.swt.eclipse module. > e.g. abstract class MyWizardDialogTester extends > BaseFinishCancelDialogTester > and add your own protected getter and action* methods > my usual practice is to write the following types of methods: > 1. Getter methods > get all widgets in the dialog (assume you are on the correct page) > and throw WidgetNotFound and MultipleWidgetsFound exceptions. > 2. Action methods > using the getter methods to find the widgets, i write methods like > actionEnterProjectName(String name), actionMyCheckBox(boolean > check), actionNext(), actionBack(), etc... > 3. Leave doTestDialog() unimplemented, for tests to implement, > and/or have static methods that take you entirely through the > wizard. > i have not gotten around to writing any documentation, but you might > find the javadocs for the AbstractDialogTester in abbot.swt helpful.
[edit]
launching wizards programmatically
TODO
![[Main Page]](/wiki/stylesheets/images/wiki.png)