Search in sources :

Example 1 with ModulesDetectionStep

use of com.intellij.ide.util.importProject.ModulesDetectionStep 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)

Aggregations

DelegatingProgressIndicator (com.intellij.ide.util.DelegatingProgressIndicator)1 LibrariesDetectionStep (com.intellij.ide.util.importProject.LibrariesDetectionStep)1 ModulesDetectionStep (com.intellij.ide.util.importProject.ModulesDetectionStep)1 ModuleWizardStep (com.intellij.ide.util.projectWizard.ModuleWizardStep)1 ArrayList (java.util.ArrayList)1