Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 16803

Summary: Missing a page change event in Wizard
Product: [Eclipse Project] Platform Reporter: Michael Acker <michael.acker>
Component: UIAssignee: Randy Giffen <Randy_Giffen>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3    
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Acker CLA 2002-05-22 10:23:44 EDT
The class org.eclipse.jface.wizard.Wizard provides two methodes called for 
changing pages:
public IWizardPage getNextPage(IWizardPage page)
public IWizardPage getPreviousPage(IWizardPage page)
Both methodes are called twice, once to determine the state of "Next" 
and "Back" button and once when changing page.
It is very useful to have control over the page changing event itself. So I 
suggest to add a new method e.g: pageChanged(oldPage,newPage).
Comment 1 Dejan Glozic CLA 2002-05-22 10:59:05 EDT
This is meant for JFace.
Comment 2 Randy Giffen CLA 2002-05-22 12:58:55 EDT
The default implementation of canFlipToNextPage() calls getNextPage(). You can 
override it so that getNextPage is only called when the page is needed.

You can override setVisible to know when an individual page becomes 
visible/invisible.

Does this meet your need?

We used to have a number of lifecycle methods but people found them confusing.
Comment 3 Michael Acker CLA 2002-05-23 01:48:36 EDT
Overwriting setVisible works. My problem is solved now. But I think a new 
method like pageChanged or only one call to getNextPage and getPreviousPage 
would be easier to understand for other users.
Thanks
Michael Acker
Comment 4 Randy Giffen CLA 2002-05-31 15:07:17 EDT

*** This bug has been marked as a duplicate of 16179 ***