Example usage for org.eclipse.jface.wizard Wizard getShell

List of usage examples for org.eclipse.jface.wizard Wizard getShell

Introduction

In this page you can find the example usage for org.eclipse.jface.wizard Wizard getShell.

Prototype

@Override
public Shell getShell() 

Source Link

Document

Returns the wizard's shell if the wizard is visible.

Usage

From source file:org.eclipse.tracecompass.tmf.ui.swtbot.tests.shared.ConditionHelpers.java

License:Open Source License

/**
 * Checks if the wizard's shell is null//from  w  w w .  j  a  v  a 2s  .  c om
 *
 * @param wizard
 *            the null
 * @return false if either are null
 */
public static ICondition isWizardReady(final Wizard wizard) {
    return new SWTBotTestCondition() {
        @Override
        public boolean test() throws Exception {
            if (wizard.getShell() == null) {
                return false;
            }
            return true;
        }
    };
}