Java 类org.eclipse.jface.wizard.IWizardContainer2 实例源码

项目:birt    文件:BirtWebProjectWizardConfigurationPage.java   
/**
 * Called whenever the wizard page has changed and forces its container
 * to resize its content.
 * 
 * @see org.eclipse.jface.dialogs.IPageChangedListener#pageChanged(org.eclipse.jface.dialogs.PageChangedEvent)
 */
public void pageChanged( PageChangedEvent event )
{
    if ( this.wizardPage == event.getSelectedPage( ) )
    {
        // force size update
        IWizardContainer container = getContainer( );
        if ( container instanceof IWizardContainer2 )
        {
            ( (IWizardContainer2) container ).updateSize( );
        }
    }
}