예제 #1
0
 private void appendSteps(@Nullable final StepSequence sequence) {
   if (sequence != null) {
     final List<ModuleWizardStep> commonSteps = sequence.getCommonSteps();
     for (ModuleWizardStep step : commonSteps) {
       addStep(step);
     }
     for (String type : sequence.getTypes()) {
       appendSteps(sequence.getSpecificSteps(type));
     }
   }
 }
예제 #2
0
 protected final int getNextStep(int step) {
   ModuleWizardStep nextStep = null;
   final StepSequence stepSequence = getMode().getSteps(myWizardContext, null);
   if (stepSequence != null) {
     if (myRootStep == mySteps.get(step)) {
       return mySteps.indexOf(stepSequence.getCommonSteps().get(0));
     }
     nextStep = stepSequence.getNextStep(mySteps.get(step));
     while (nextStep != null && !nextStep.isStepVisible()) {
       nextStep = stepSequence.getNextStep(nextStep);
     }
   }
   return nextStep == null ? step : mySteps.indexOf(nextStep);
 }