当前位置: 首页>>代码示例>>Java>>正文


Java StepSequence.addSpecificStep方法代码示例

本文整理汇总了Java中com.intellij.ide.util.newProjectWizard.StepSequence.addSpecificStep方法的典型用法代码示例。如果您正苦于以下问题:Java StepSequence.addSpecificStep方法的具体用法?Java StepSequence.addSpecificStep怎么用?Java StepSequence.addSpecificStep使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.intellij.ide.util.newProjectWizard.StepSequence的用法示例。


在下文中一共展示了StepSequence.addSpecificStep方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: addSteps

import com.intellij.ide.util.newProjectWizard.StepSequence; //导入方法依赖的package包/类
public void addSteps(WizardContext context, ModulesProvider modulesProvider, StepSequence sequence, String specific) {
  final ProjectFromSourcesBuilderImpl projectBuilder = new ProjectFromSourcesBuilderImpl(context, modulesProvider);
  myProjectBuilder = projectBuilder;

  final Icon icon = context.getStepIcon();
  if (context.isCreatingNewProject()) {
    addStep(sequence, new ProjectNameStep(context, this), specific);
  }
  addStep(sequence, new RootsDetectionStep(projectBuilder, context, sequence, icon, "reference.dialogs.new.project.fromCode.source"), specific);

  Set<String> detectorTypes = new HashSet<String>();
  for (ProjectStructureDetector detector : ProjectStructureDetector.EP_NAME.getExtensions()) {
    detectorTypes.add(detector.getDetectorId());
    for (ModuleWizardStep step : detector.createWizardSteps(projectBuilder, projectBuilder.getProjectDescriptor(detector), icon)) {
      sequence.addSpecificStep(detector.getDetectorId(), step);
    }
  }

  if (FrameworkDetectionStep.isEnabled()) {
    FrameworkDetectionStep frameworkDetectionStep = new FrameworkDetectionStep(icon, projectBuilder) {
      public List<ModuleDescriptor> getModuleDescriptors() {
        final List<ModuleDescriptor> moduleDescriptors = new ArrayList<ModuleDescriptor>();
        for (ProjectDescriptor descriptor : projectBuilder.getSelectedDescriptors()) {
          moduleDescriptors.addAll(descriptor.getModules());
        }
        return moduleDescriptors;
      }
    };
    projectBuilder.addConfigurationUpdater(frameworkDetectionStep);
    sequence.addCommonFinishingStep(frameworkDetectionStep, detectorTypes);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:33,代码来源:CreateFromSourcesMode.java

示例2: addStep

import com.intellij.ide.util.newProjectWizard.StepSequence; //导入方法依赖的package包/类
private static void addStep(StepSequence sequence, ModuleWizardStep step, String specific) {
  if (specific == null) {
    sequence.addCommonStep(step);
  }
  else {
    sequence.addSpecificStep(specific, step);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:CreateFromSourcesMode.java

示例3: addSteps

import com.intellij.ide.util.newProjectWizard.StepSequence; //导入方法依赖的package包/类
public void addSteps(StepSequence sequence, WizardContext context, String id) {
  ModuleWizardStep[] steps = createSteps(context);
  for (ModuleWizardStep step : steps) {
    sequence.addSpecificStep(id, step);
  }
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:ProjectImportProvider.java

示例4: addSteps

import com.intellij.ide.util.newProjectWizard.StepSequence; //导入方法依赖的package包/类
default void addSteps(StepSequence sequence, WizardContext context, @Nonnull C moduleImportContext, String id) {
  ModuleWizardStep[] steps = createSteps(context, moduleImportContext);
  for (ModuleWizardStep step : steps) {
    sequence.addSpecificStep(id, step);
  }
}
 
开发者ID:consulo,项目名称:consulo,代码行数:7,代码来源:ModuleImportProvider.java


注:本文中的com.intellij.ide.util.newProjectWizard.StepSequence.addSpecificStep方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。