Search in sources :

Example 1 with ActivityModel

use of com.android.tools.idea.wizard.model.demo.npw.models.ActivityModel 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)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 NotNull (org.jetbrains.annotations.NotNull)1