コード例 #1
0
  @Override
  public ModuleWizardStep[] createWizardSteps(
      WizardContext wizardContext, GoModuleBuilder moduleBuilder, ModulesProvider modulesProvider) {
    List<ModuleWizardStep> steps = new ArrayList<ModuleWizardStep>();

    ProjectWizardStepFactory factory = ProjectWizardStepFactory.getInstance();

    //        steps.add(factory.createSourcePathsStep(wizardContext, moduleBuilder, null,
    // "reference.dialogs.new.project.fromScratch.source"));
    //        steps.add(factory.createProjectJdkStep(wizardContext));
    //        steps.add(new AndroidModuleWizardStep(moduleBuilder, wizardContext.getProject()));
    steps.add(
        factory.createSourcePathsStep(
            wizardContext,
            moduleBuilder,
            null,
            "reference.dialogs.new.project.fromScratch.source"));
    steps.add(
        factory.createProjectJdkStep(
            wizardContext,
            SdkType.findInstance(GoSdkType.class),
            moduleBuilder,
            new Computable.PredefinedValueComputable<Boolean>(true),
            null,
            ""));
    //        steps.add(new GoModuleWizardStep(moduleBuilder, wizardContext.getProject()));
    return steps.toArray(new ModuleWizardStep[steps.size()]);
  }
コード例 #2
0
 @Override
 public ModuleWizardStep[] createWizardSteps(
     final WizardContext wizardContext,
     final JavaModuleBuilder moduleBuilder,
     final ModulesProvider modulesProvider) {
   final ProjectWizardStepFactory wizardFactory = ProjectWizardStepFactory.getInstance();
   ArrayList<ModuleWizardStep> steps = new ArrayList<ModuleWizardStep>();
   steps.add(
       wizardFactory.createSourcePathsStep(
           wizardContext,
           moduleBuilder,
           getWizardIcon(),
           "reference.dialogs.new.project.fromScratch.source"));
   steps.add(
       wizardFactory.createProjectJdkStep(
           wizardContext,
           JavaSdk.getInstance(),
           moduleBuilder,
           new Computable<Boolean>() {
             @Override
             public Boolean compute() {
               final Sdk projectJdk = wizardFactory.getNewProjectSdk(wizardContext);
               return projectJdk == null || projectJdk.getSdkType() != JavaSdk.getInstance()
                   ? Boolean.TRUE
                   : Boolean.FALSE;
             }
           },
           getWizardIcon(),
           "reference.dialogs.new.project.fromScratch.sdk"));
   final ModuleWizardStep supportForFrameworksStep =
       wizardFactory.createSupportForFrameworksStep(wizardContext, moduleBuilder, modulesProvider);
   if (supportForFrameworksStep != null) {
     steps.add(supportForFrameworksStep);
   }
   final ModuleWizardStep[] wizardSteps = steps.toArray(new ModuleWizardStep[steps.size()]);
   return ArrayUtil.mergeArrays(
       wizardSteps, super.createWizardSteps(wizardContext, moduleBuilder, modulesProvider));
 }