@Override public boolean validate() throws ConfigurationException { if (mySettingsStep != null) { if (!mySettingsStep.validate()) return false; } ModuleWizardStep step = getCustomStep(); return step != null ? step.validate() : super.validate(); }
@Override public void updateDataModel() { ModuleBuilder builder = getSelectedBuilder(); myWizard.getSequence().addStepsForBuilder(builder, myContext, myModulesProvider); ModuleWizardStep step = getCustomStep(); if (step != null) { step.updateDataModel(); } if (mySettingsStep != null) { mySettingsStep.updateDataModel(); } }
private boolean showCustomOptions(@NotNull ModuleBuilder builder) { String card = builder.getBuilderId(); if (!myCustomSteps.containsKey(card)) { ModuleWizardStep step = builder.getCustomOptionsStep(myContext, this); if (step == null) return false; step.updateStep(); myCustomSteps.put(card, step); myOptionsPanel.add(step.getComponent(), card); } showCard(card); return true; }