本文整理汇总了Java中com.intellij.ide.util.newProjectWizard.StepSequence.addCommonStep方法的典型用法代码示例。如果您正苦于以下问题:Java StepSequence.addCommonStep方法的具体用法?Java StepSequence.addCommonStep怎么用?Java StepSequence.addCommonStep使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.intellij.ide.util.newProjectWizard.StepSequence
的用法示例。
在下文中一共展示了StepSequence.addCommonStep方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createSteps
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入方法依赖的package包/类
@Nonnull
@SuppressWarnings("unchecked")
public StepSequence createSteps(final WizardContext context) {
final StepSequence stepSequence = new StepSequence();
if (myProviders.length > 1) {
stepSequence.addCommonStep(new ImportChooserStep(myProviders, stepSequence, context));
}
for (ModuleImportProvider provider : myProviders) {
ModuleImportContext moduleImportContext = context.getModuleImportContext(provider);
provider.addSteps(stepSequence, context, moduleImportContext, provider.getClass().getName());
}
if (myProviders.length == 1) {
stepSequence.setType(myProviders[0].getClass().getName());
}
return myStepSequence = stepSequence;
}
示例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: createSteps
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入方法依赖的package包/类
@Nullable
@Override
protected StepSequence createSteps(@NotNull WizardContext context, @NotNull ModulesProvider modulesProvider) {
MultiMap<TemplatesGroup, ProjectTemplate> map = getTemplatesMap(context);
StepSequence sequence = new StepSequence();
for (ProjectTemplate template : map.values()) {
sequence.addStepsForBuilder(template.createModuleBuilder(), context, modulesProvider);
}
mySelectTemplateStep = new SelectTemplateStep(context, sequence, map);
sequence.addCommonStep(mySelectTemplateStep);
return sequence;
}
示例4: createSteps
import com.intellij.ide.util.newProjectWizard.StepSequence; //导入方法依赖的package包/类
@Nullable
protected StepSequence createSteps(@NotNull final WizardContext context, @NotNull final ModulesProvider modulesProvider) {
final StepSequence stepSequence = new StepSequence();
if (myProviders.length > 1) {
stepSequence.addCommonStep(new ImportChooserStep(myProviders, stepSequence, context));
}
for (ProjectImportProvider provider : myProviders) {
provider.addSteps(stepSequence, context, provider.getId());
}
if (myProviders.length == 1) {
stepSequence.setType(myProviders[0].getId());
}
return stepSequence;
}