adding wizardPages and get the result dynamically [message #1771934] |
Fri, 01 September 2017 10:00 |
Banafsheh Azizi Messages: 328 Registered: July 2016 |
Senior Member |
|
|
Hi,
I created a "Wizard", then I created a "WizardPage" namely "FrontPage" and added it to wizard in wizard's "addPage" method.
Since I have only one page in addPage method, the Next button not shown. I want it to be shown.
In the nextPressed() method of the FrontPage, I created an instance of another java class that the class runs the program written in another language. In several points of that program, I need to create wizardPage dynamically. for this purpose I created a java class to contribute to the program and this class namely "interfaceRule" create an instance of wizardPage in other plugin.
My questions is how can I add this wizardPages to the main wizard? And also how can I return the value that user select in wizardPage to "interfaceRule" class?
Member of MDSE Research Group
http://mdse.ui.ac.ir
[Updated on: Fri, 01 September 2017 10:01] Report message to a moderator
|
|
|
|
Re: adding wizardPages and get the result dynamically [message #1772978 is a reply to message #1772025] |
Tue, 19 September 2017 15:52 |
Eclipse User |
|
|
|
The Prev/Next buttons are only created at creation time. You'll need to force them to be shown by calling Wizard.setForcePreviousAndNextButtons(true) during your wizard construction.
You can add pages dynamically via Wizard#addPage(WizardPage), but that is not exposed via the IWizard interface. So you'll need your WizardPage to cast its IWizard (i.e., `((Wizard)getWizard()).addPage(newPage)`) or consider having that logic on your Wizard implementation class.
|
|
|
Powered by
FUDForum. Page generated in 0.03235 seconds