Example usage for org.eclipse.jface.wizard IWizardPage getImage

List of usage examples for org.eclipse.jface.wizard IWizardPage getImage

Introduction

In this page you can find the example usage for org.eclipse.jface.wizard IWizardPage getImage.

Prototype

Image getImage();

Source Link

Document

Returns this dialog page's image.

Usage

From source file:gov.nasa.ensemble.common.ui.wizard.EnsembleWizard.java

License:Open Source License

/**
 * Iterates through all of the windowPages and applies the large image to each page.
 *///from   www  .  j a v  a 2s  .com
protected void applyLargeImageToPages() {
    IWizardPage[] wizardPages = this.getPages();
    ImageDescriptor imageDescriptor = getLargeImageDescriptor();
    if (imageDescriptor != null) {
        for (IWizardPage wizardPage : wizardPages) {
            Image currentImage = wizardPage.getImage();
            if (imageDescriptor != null) {
                if (currentImage != null && !currentImage.equals(getDefaultPageImage())) {
                    // we may be in someone else's business disposing of the default image...
                    // that'd be bad.
                    // currentImage.dispose();
                }
                wizardPage.setImageDescriptor(imageDescriptor);
            }
        }
    }
}