Search in sources :

Example 26 with ModuleWizardStep

use of com.intellij.ide.util.projectWizard.ModuleWizardStep in project intellij-plugins by JetBrains.

the class FlexProjectStructureDetector method createWizardSteps.

public List<ModuleWizardStep> createWizardSteps(final ProjectFromSourcesBuilder builder, final ProjectDescriptor projectDescriptor, final Icon stepIcon) {
    FlexModuleInsight moduleInsight = new FlexModuleInsight(new DelegatingProgressIndicator(), builder.getExistingModuleNames(), builder.getExistingProjectLibraryNames());
    final List<ModuleWizardStep> steps = new ArrayList<>();
    steps.add(new LibrariesDetectionStep(builder, projectDescriptor, moduleInsight, stepIcon, "reference.dialogs.new.project.fromCode.page1"));
    steps.add(new ModulesDetectionStep(this, builder, projectDescriptor, moduleInsight, stepIcon, "reference.dialogs.new.project.fromCode.page2"));
    steps.add(new FlexSdkStep(builder.getContext()));
    return steps;
}
Also used : DelegatingProgressIndicator(com.intellij.ide.util.DelegatingProgressIndicator) ModuleWizardStep(com.intellij.ide.util.projectWizard.ModuleWizardStep) ArrayList(java.util.ArrayList) LibrariesDetectionStep(com.intellij.ide.util.importProject.LibrariesDetectionStep) ModulesDetectionStep(com.intellij.ide.util.importProject.ModulesDetectionStep)

Example 27 with ModuleWizardStep

use of com.intellij.ide.util.projectWizard.ModuleWizardStep in project intellij-plugins by StepicOrg.

the class CourseModuleBuilder method createWizardSteps.

@Override
public ModuleWizardStep[] createWizardSteps(@NotNull WizardContext wizardContext, @NotNull ModulesProvider modulesProvider) {
    ModuleWizardStep[] previousWizardSteps = super.createWizardSteps(wizardContext, modulesProvider);
    ModuleWizardStep[] wizardSteps = new ModuleWizardStep[previousWizardSteps.length + 1];
    Project project = wizardContext.getProject() == null ? DefaultProjectFactory.getInstance().getDefaultProject() : wizardContext.getProject();
    wizardStep = new JavaWizardStep(generator, project);
    wizardSteps[0] = wizardStep;
    return wizardSteps;
}
Also used : Project(com.intellij.openapi.project.Project) ModuleWizardStep(com.intellij.ide.util.projectWizard.ModuleWizardStep)

Aggregations

ModuleWizardStep (com.intellij.ide.util.projectWizard.ModuleWizardStep)27 Project (com.intellij.openapi.project.Project)5 ArrayList (java.util.ArrayList)5 ConfigurationException (com.intellij.openapi.options.ConfigurationException)3 DelegatingProgressIndicator (com.intellij.ide.util.DelegatingProgressIndicator)2 ProjectBuilder (com.intellij.ide.util.projectWizard.ProjectBuilder)2 ProjectWizardStepFactory (com.intellij.ide.util.projectWizard.ProjectWizardStepFactory)2 SettingsStep (com.intellij.ide.util.projectWizard.SettingsStep)2 WizardContext (com.intellij.ide.util.projectWizard.WizardContext)2 ProjectStructureDetector (com.intellij.ide.util.projectWizard.importSources.ProjectStructureDetector)2 Step (com.intellij.ide.wizard.Step)2 Module (com.intellij.openapi.module.Module)2 VirtualFile (com.intellij.openapi.vfs.VirtualFile)2 NotNull (org.jetbrains.annotations.NotNull)2 Nullable (org.jetbrains.annotations.Nullable)2 ModuleImporter (com.android.tools.idea.gradle.project.ModuleImporter)1 WrapArchiveWizardPath (com.android.tools.idea.npw.deprecated.WrapArchiveWizardPath)1 Template (com.android.tools.idea.templates.Template)1 TemplateManager (com.android.tools.idea.templates.TemplateManager)1 ModelWizardStep (com.android.tools.idea.wizard.model.ModelWizardStep)1