Search in sources :

Example 1 with ModelWizardStep

use of com.android.tools.idea.wizard.model.ModelWizardStep in project android by JetBrains.

the class ChooseModuleTypeStep method createDependentSteps.

@NotNull
@Override
public Collection<? extends ModelWizardStep> createDependentSteps() {
    List<ModelWizardStep> allSteps = Lists.newArrayList();
    myModuleDescriptionToStepMap = new HashMap<>();
    for (ModuleGalleryEntry moduleGalleryEntry : myModuleGalleryEntryList) {
        SkippableWizardStep step = moduleGalleryEntry.createStep(getModel());
        allSteps.add(step);
        myModuleDescriptionToStepMap.put(moduleGalleryEntry, step);
    }
    return allSteps;
}
Also used : SkippableWizardStep(com.android.tools.idea.wizard.model.SkippableWizardStep) ModelWizardStep(com.android.tools.idea.wizard.model.ModelWizardStep) NotNull(org.jetbrains.annotations.NotNull)

Example 2 with ModelWizardStep

use of com.android.tools.idea.wizard.model.ModelWizardStep in project flutter-intellij by flutter.

the class ChoseProjectTypeStep method createDependentSteps.

@NotNull
@Override
public Collection<? extends ModelWizardStep> createDependentSteps() {
    List<ModelWizardStep> allSteps = Lists.newArrayList();
    myModuleDescriptionToStepMap = new HashMap<>();
    for (ModuleGalleryEntry moduleGalleryEntry : myModuleGalleryEntryList) {
        FlutterProjectStep step = ((FlutterGalleryEntry) moduleGalleryEntry).createFlutterStep(getModel());
        allSteps.add(step);
        myModuleDescriptionToStepMap.put(moduleGalleryEntry, step);
    }
    return allSteps;
}
Also used : ModuleGalleryEntry(com.android.tools.idea.npw.module.ModuleGalleryEntry) ModelWizardStep(com.android.tools.idea.wizard.model.ModelWizardStep) FlutterGalleryEntry(io.flutter.module.FlutterDescriptionProvider.FlutterGalleryEntry) NotNull(org.jetbrains.annotations.NotNull)

Example 3 with ModelWizardStep

use of com.android.tools.idea.wizard.model.ModelWizardStep in project android by JetBrains.

the class SourceToGradleModuleStep method createDependentSteps.

@NotNull
@Override
protected Collection<? extends ModelWizardStep> createDependentSteps() {
    WizardContext context = getModel().getContext();
    ArrayList<ModelWizardStep> wrappedSteps = new ArrayList<>();
    for (ModuleImporter importer : ModuleImporter.getAllImporters(context)) {
        for (ModuleWizardStep inputStep : importer.createWizardSteps()) {
            wrappedSteps.add(new ModuleWizardStepAdapter(context, inputStep));
        }
    }
    return wrappedSteps;
}
Also used : ModuleWizardStep(com.intellij.ide.util.projectWizard.ModuleWizardStep) ModuleImporter(com.android.tools.idea.gradle.project.ModuleImporter) WizardContext(com.intellij.ide.util.projectWizard.WizardContext) ArrayList(java.util.ArrayList) ModelWizardStep(com.android.tools.idea.wizard.model.ModelWizardStep) NotNull(org.jetbrains.annotations.NotNull)

Example 4 with ModelWizardStep

use of com.android.tools.idea.wizard.model.ModelWizardStep in project android by JetBrains.

the class ChooseFormFactorsStep method createDependentSteps.

@NotNull
@Override
public Collection<? extends ModelWizardStep> createDependentSteps() {
    List<ModelWizardStep> allSteps = Lists.newArrayList();
    for (final FormFactor formFactor : FormFactor.FORM_FACTORS) {
        ActivityModel model = new ActivityModel(formFactor);
        ChooseActivityStep step = new ChooseActivityStep(model);
        // Default to false, show only if selected
        step.setVisible(false);
        myFormFactorSteps.put(formFactor, step);
        allSteps.add(step);
    }
    return allSteps;
}
Also used : FormFactor(com.android.tools.idea.wizard.model.demo.npw.android.FormFactor) ActivityModel(com.android.tools.idea.wizard.model.demo.npw.models.ActivityModel) ModelWizardStep(com.android.tools.idea.wizard.model.ModelWizardStep) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

ModelWizardStep (com.android.tools.idea.wizard.model.ModelWizardStep)4 NotNull (org.jetbrains.annotations.NotNull)4 ModuleImporter (com.android.tools.idea.gradle.project.ModuleImporter)1 ModuleGalleryEntry (com.android.tools.idea.npw.module.ModuleGalleryEntry)1 SkippableWizardStep (com.android.tools.idea.wizard.model.SkippableWizardStep)1 FormFactor (com.android.tools.idea.wizard.model.demo.npw.android.FormFactor)1 ActivityModel (com.android.tools.idea.wizard.model.demo.npw.models.ActivityModel)1 ModuleWizardStep (com.intellij.ide.util.projectWizard.ModuleWizardStep)1 WizardContext (com.intellij.ide.util.projectWizard.WizardContext)1 FlutterGalleryEntry (io.flutter.module.FlutterDescriptionProvider.FlutterGalleryEntry)1 ArrayList (java.util.ArrayList)1