[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: SWT Wizard: callback when flipping to next or previous page

IWizardContainer container = wizard.getContainer();
if (container instanceof IPageChangeProvider) {
  ((IPageChangeProvider) container).addPageChangeListener(listener));
}

thanks for your answer.

problem is that getContainer() in subclassed Wizard implementation and inside WizardPage class constructors always returns null reference. most likely Container is set after wizard constructor is finished, which is too late for me because i want to add my IPageChangedListener inside my wizard constructor routine.


-- manuel aldana aldana@xxxxxx aldana@xxxxxxxxxxxxxxx homepage: http://www.aldana-online.de