Main Page | Recent changes | Edit this page | Page history

Printable version | Disclaimers

127.0.0.1 (Talk)
Log in | Help
 

Working with SWT wizards

From AbbotWiki

back to Abbot

overview

TODO

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.

launching wizards programmatically

TODO

back to Abbot

Retrieved from "http://abbot.sourceforge.net/wiki/index.php/Working_with_SWT_wizards"

This page has been accessed 1660 times. This page was last modified 23:27, 25 Aug 2005. Content is available under Attribution-ShareAlike.


[Main Page]
Main Page
Recent changes
Random page
Current events

Edit this page
Discuss this page
Page history
What links here
Related changes

Special pages
Bug reports