Anand
Anand

Reputation: 2359

How to enable Next/back button in wizard page in eclipse?

In my wizard page, the Next and Back buttons are not visible. is there any method to be called to make that enable?

Thanks a lot in advance!

Upvotes: 1

Views: 4372

Answers (2)

r_tex
r_tex

Reputation: 51

Check the needsNextAndPreviousButton method in the wizard constructor. If you've added pages in your wizard then check canFlipToNextPage, isPageComplete, and validate your page completion in these methods and enable/disable as well.

Upvotes: 2

Zoltán Ujhelyi
Zoltán Ujhelyi

Reputation: 13858

Did you add multiple Wizard pages to the wizard? If there is only a single page, it makes sense to remove the mentioned buttons.

Update: If there are multiple pages, then look at the Wizard implementation, and check the needsNextAndPreviousButton method what it describes. If you have implemented the IWizard interface directly (and not using some convenience abstract class, such as Wizard), it is possible that you generated that method returning constant false.

If that did not help, I suggest looking at the tutorial http://www.eclipse.org/articles/article.php?file=Article-JFaceWizards/index.html

Upvotes: 5

Related Questions