本文整理汇总了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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}