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

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

Introduction

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

Prototype

void setImageDescriptor(ImageDescriptor image);

Source Link

Document

Sets 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.
 *///  w w w  .j  a v  a 2s  .  c o m
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);
            }
        }
    }
}

From source file:org.wso2.developerstudio.eclipse.artifact.axis2serviceclient.ui.wizard.Axis2ClientGenerationWizard.java

License:Open Source License

public IWizardPage getNextPage(IWizardPage page) {
    IWizardPage nextPage = super.getNextPage(page);
    if (nextPage != null) {
        nextPage.setImageDescriptor(Axis2ImageUtils.getInstance().getImageDescriptor("axis2-wizard.png"));
    }/*from   w  w  w  .  j  a va2  s . co m*/
    // if (page instanceof Axis2GenerateClientOptionPage){
    // // if (clientOptionPage.getSourceFolder()==null){
    // // clientOptionPage.setSourceFolder(sourceFolder);
    // // clientOptionPage.update(null, null);
    // // }
    // }

    if (nextPage instanceof Axis2ClientConfigurationPage) {
        ((Axis2ClientConfigurationPage) nextPage).update();
    }
    return nextPage;
}

From source file:org.wso2.developerstudio.eclipse.artifact.bpel.ui.wizard.BPELSecurityWizard.java

License:Open Source License

public IWizardPage getNextPage(IWizardPage page) {
    IWizardPage nextPage = super.getNextPage(page);
    if (nextPage != null) {
        nextPage.setImageDescriptor(BPELImageUtils.getInstance().getImageDescriptor("bpel-wizard.png"));
    }//from  w w  w .  j a  v  a  2  s.com
    return nextPage;

}