I'm writing a little wizard for Eclipse with some pages and I need to catch the moment of the first time page displaying.
I checked constructor and createControl
but they are called in the creation moment in the Wizard
object (addPages
).
Is there a way to get what I need? Maybe somebody knows some trick?
You can override setVisible(boolean) method in your WizardPage. So for example use something like:
private boolean initialized = false;
@Override
public void setVisible(boolean visible) {
if (!initialized && visible) {
//do something
initialized = true;
}
control.setVisible(visible);
}
You can use a IPageChangedListener
or a IpageChangingListener
, registered on the WizardDialog. They will be notified when the current page of the wizard changes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With