List of usage examples for org.springframework.ide.eclipse.boot.wizard NewSpringBootWizardModel getRadioGroups
public RadioGroups getRadioGroups()
From source file:org.springframework.ide.eclipse.boot.wizard.PreferredSelections.java
public void save(NewSpringBootWizardModel wizard) { for (FieldModel<String> input : wizard.stringInputs) { if (isInteresting(input)) { put(input.getName(), input.getValue()); }/* w w w . java 2s . co m*/ } for (RadioGroup input : wizard.getRadioGroups().getGroups()) { if (isInteresting(input)) { put(input.getName(), input.getValue().getValue()); } } }
From source file:org.springframework.ide.eclipse.boot.wizard.PreferredSelections.java
public void restore(NewSpringBootWizardModel wizard) { for (FieldModel<String> input : wizard.stringInputs) { if (isInteresting(input)) { String v = get(input.getName(), input.getValue()); input.setValue(v);/*from w w w . ja v a 2 s .c o m*/ } } for (RadioGroup input : wizard.getRadioGroups().getGroups()) { if (isInteresting(input)) { String choiceId = get(input.getName(), null); RadioInfo info = input.getRadio(choiceId); if (info != null) { input.getVariable().setValue(info); } } } }