use of com.android.tools.idea.npw.NewProjectWizardDynamic in project android by JetBrains.
the class AndroidNewProjectAction method actionPerformed.
@Override
public void actionPerformed(AnActionEvent e) {
// TODO: Temporary! This will be the main code path after we completely convert over NewProjectWizardDynamic
if (Boolean.getBoolean("use.npw.modelwizard") && (e.getModifiers() & InputEvent.SHIFT_MASK) == 0) {
NewProjectModel model = new NewProjectModel();
ModelWizard wizard = new ModelWizard.Builder().addStep(new ConfigureAndroidProjectStep(model)).build();
new StudioWizardDialogBuilder(wizard, "Create New Project").build().show();
} else {
try {
NewProjectWizardDynamic dialog = new NewProjectWizardDynamic(null, null);
dialog.init();
dialog.show();
} catch (IllegalStateException error) {
Logger.getInstance(AndroidNewProjectAction.class).warn("Unable to launch New Project Wizard", error);
}
}
}
Aggregations