Example usage for org.springframework.ide.eclipse.boot.wizard RadioGroup getRadio

List of usage examples for org.springframework.ide.eclipse.boot.wizard RadioGroup getRadio

Introduction

In this page you can find the example usage for org.springframework.ide.eclipse.boot.wizard RadioGroup getRadio.

Prototype

public RadioInfo getRadio(String value) 

Source Link

Usage

From source file:org.springframework.ide.eclipse.boot.wizard.NewSpringBootWizardModel.java

/**
 * Convenience method so that test code can easily select an import strategy.
 * This will throw an exception if the given importstragey is not present
 * in this wizardmodel./*from   ww  w.j  a  va 2  s.c om*/
 */
public void setImportStrategy(ImportStrategy is) {
    RadioGroup typeRadios = getRadioGroups().getGroup("type");
    RadioInfo radio = typeRadios.getRadio(is.getId());
    Assert.isLegal(radio != null);
    typeRadios.setValue(radio);
}