-
Notifications
You must be signed in to change notification settings - Fork 0
Wizards
All wizard dialogs in RedDeer extend org.jboss.reddeer.eclipse.jface.wizard.WizardDialog class. It represents the dialog itself, not a concrete wizard page and offers methods like next, finish etc. It does not specify how the dialog is open (you instantiate the dialog once it is open in Eclipse).
There is also a special abstract subclass of wizard dialog called org.jboss.reddeer.eclipse.jface.wizard.NewWizardDialog that represents wizards accessible by top menu (File -> New -> Other...). It contain logic for opening the wizard. Other examples of such a wizard are org.jboss.reddeer.eclipse.jface.wizard.ImportWizardDialog and org.jboss.reddeer.eclipse.jface.wizard.ExportWizardDialog.
Every wizard dialog has to provide access to the first wizard page, optionally to other pages. This means that you do not have to find the concrete wizard page to use, it is created by the wizard dialog.
Sometimes it is not possible to provide all wizard pages by wizard dialog, mainly because they're added by extension point. In that case you have to find and instantiate it by yourself but you can still use the dialog's methods next, cancel, finish etc.
Wizard page represents the content of the wizard (text fields, combo boxes, etc.).
Example:
NewJavaClassWizardDialog javaClassWizardDialog = new NewJavaClassWizardDialog();
javaClassWizardDialog.open();
NewJavaClassWizardPage wizardPage = javaClassWizardDialog.getFirstPage();
wizardPage.setName("MyClass");
wizardPage.setPackage("org.reddeer.example");
javaClassWizardDialog.finish();
JBoss Red Deer - Quick Links
- Home
- Getting Started
- [Release notes] (/jboss-reddeer/reddeer/wiki/Release-notes)
- User section
- Contributor section
- FAQ