示例#1
0
 @Override
 public boolean validate() throws ConfigurationException {
   if (mySettingsStep != null) {
     if (!mySettingsStep.validate()) return false;
   }
   ModuleWizardStep step = getCustomStep();
   return step != null ? step.validate() : super.validate();
 }
示例#2
0
 @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();
   }
 }
示例#3
0
 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;
 }