开发者

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!


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜