• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java ProjectWizardStepFactory类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.intellij.ide.util.projectWizard.ProjectWizardStepFactory的典型用法代码示例。如果您正苦于以下问题:Java ProjectWizardStepFactory类的具体用法?Java ProjectWizardStepFactory怎么用?Java ProjectWizardStepFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ProjectWizardStepFactory类属于com.intellij.ide.util.projectWizard包,在下文中一共展示了ProjectWizardStepFactory类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createSteps

import com.intellij.ide.util.projectWizard.ProjectWizardStepFactory; //导入依赖的package包/类
@Override
public ModuleWizardStep[] createSteps(final WizardContext context) {
    final ProjectWizardStepFactory stepFactory = ProjectWizardStepFactory.getInstance();

    return new ModuleWizardStep[]{
        new CheckRequiredPluginsStep(context),
        new DiscountImportstep(context),
        new InformationStep(context),
        new HybrisWorkspaceRootStep(context),
        new SelectHybrisModulesToImportStep(context),
        new SelectOtherModulesToImportStep(context),
        stepFactory.createProjectJdkStep(context)
    };
}
 
开发者ID:AlexanderBartash,项目名称:hybris-integration-intellij-idea-plugin,代码行数:15,代码来源:HybrisProjectImportProvider.java


示例2: modifySettingsStep

import com.intellij.ide.util.projectWizard.ProjectWizardStepFactory; //导入依赖的package包/类
@Nullable
@Override
public ModuleWizardStep modifySettingsStep(@NotNull SettingsStep settingsStep) {
  ModuleWizardStep javaSettingsStep =
    ProjectWizardStepFactory.getInstance().createJavaSettingsStep(settingsStep, this, Conditions.alwaysTrue());
  Function<JTextField, String> getValue = JTextComponent::getText;
  getWizardInputField("ccname", "", "Name:", myPanel.getNameField(), getValue).addToSettings(settingsStep);
  getWizardInputField("ccauthor", "", "Author:", myPanel.getAuthorField(), getValue).addToSettings(settingsStep);

  myLanguageComboBox.removeAllItems();
  for (LanguageExtensionPoint extension : Extensions.<LanguageExtensionPoint>getExtensions(EduPluginConfigurator.EP_NAME, null)) {
    String languageId = extension.getKey();
    Language language = Language.findLanguageByID(languageId);
    if (language == null) {
      LOG.info("Language with id " + languageId + " not found");
      continue;
    }
    myLanguageComboBox.addItem(new LanguageWrapper(language));
  }
  getWizardInputField("cclang", "", "Language:", myLanguageComboBox, comboBox -> (String) comboBox.getSelectedItem())
    .addToSettings(settingsStep);
  JTextArea descriptionField = myPanel.getDescriptionField();
  descriptionField.setRows(4);
  descriptionField.setBorder(null);
  descriptionField.invalidate();
  JBScrollPane scrollPane = new JBScrollPane(descriptionField);
  scrollPane.setMinimumSize(scrollPane.getUI().getPreferredSize(descriptionField));
  getWizardInputField("ccdescr", "", "Description:", scrollPane, pane -> descriptionField.getText()).addToSettings(settingsStep);
  return javaSettingsStep;
}
 
开发者ID:medvector,项目名称:educational-plugin,代码行数:31,代码来源:EduCCModuleBuilder.java


示例3: createSteps

import com.intellij.ide.util.projectWizard.ProjectWizardStepFactory; //导入依赖的package包/类
public ModuleWizardStep[] createSteps(WizardContext context) {
    final ProjectWizardStepFactory stepFactory = ProjectWizardStepFactory.getInstance();
    return new ModuleWizardStep[]{
            stepFactory.createProjectJdkStep(context),
            new ProcessingSketchRootSelectStep(context),
            new ConfigureProcessingProject(context)
    };
}
 
开发者ID:mistodev,项目名称:processing-idea,代码行数:9,代码来源:ProcessingProjectImportProvider.java


示例4: createWizardSteps

import com.intellij.ide.util.projectWizard.ProjectWizardStepFactory; //导入依赖的package包/类
@Override
public List<ModuleWizardStep> createWizardSteps(ProjectFromSourcesBuilder builder,
                                                ProjectDescriptor projectDescriptor,
                                                Icon stepIcon) {
  final List<ModuleWizardStep> steps = new ArrayList<ModuleWizardStep>();
  final ModuleInsight moduleInsight = new JavaModuleInsight(new DelegatingProgressIndicator(), builder.getExistingModuleNames(), builder.getExistingProjectLibraryNames());
  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"));
  if (builder.getContext().isCreatingNewProject()) {
    steps.add(ProjectWizardStepFactory.getInstance().createProjectJdkStep(builder.getContext()));
  }
  return steps;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:JavaProjectStructureDetector.java


示例5: createWizardSteps

import com.intellij.ide.util.projectWizard.ProjectWizardStepFactory; //导入依赖的package包/类
@Override
public List<ModuleWizardStep> createWizardSteps(ProjectFromSourcesBuilder builder,
                                                ProjectDescriptor projectDescriptor,
                                                Icon stepIcon) {
  final ModuleWizardStep groovySdkStep = new GroovySdkForProjectFromSourcesStep(this, builder, projectDescriptor, myFramework);
  final ModuleWizardStep javaSdkStep = ProjectWizardStepFactory.getInstance().createProjectJdkStep(builder.getContext());
  return Arrays.asList(javaSdkStep, groovySdkStep);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:MvcProjectStructureDetector.java


示例6: modifyProjectTypeStep

import com.intellij.ide.util.projectWizard.ProjectWizardStepFactory; //导入依赖的package包/类
@Nullable
public ModuleWizardStep modifyProjectTypeStep(@NotNull SettingsStep settingsStep, @NotNull final ModuleBuilder moduleBuilder) {
    return ProjectWizardStepFactory.getInstance().createJavaSettingsStep(settingsStep, moduleBuilder, new Condition() {
        @Override
        public boolean value(Object o) {
            return true;
        }

        public boolean value(SdkTypeId sdkType) {
            return moduleBuilder.isSuitableSdkType(sdkType);
        }
    });
}
 
开发者ID:eli1982,项目名称:intellij-perl-plugin,代码行数:14,代码来源:PerlModuleType.java


示例7: createWizardSteps

import com.intellij.ide.util.projectWizard.ProjectWizardStepFactory; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public List<ModuleWizardStep> createWizardSteps(
        final ProjectFromSourcesBuilder builder,
        final ProjectDescriptor projectDescriptor,
        final Icon stepIcon) {

    final WizardContext context = builder.getContext();
    final ModuleWizardStep sdkStep = ProjectWizardStepFactory.getInstance().createProjectJdkStep(context);
    return Collections.singletonList(sdkStep);
}
 
开发者ID:metaborg,项目名称:spoofax-intellij,代码行数:14,代码来源:MetaborgProjectDetector.java


示例8: createWizardSteps

import com.intellij.ide.util.projectWizard.ProjectWizardStepFactory; //导入依赖的package包/类
@Override
public ModuleWizardStep[] createWizardSteps(final WizardContext wizardContext,
                                            final OCamlModuleBuilder moduleBuilder,
                                            final ModulesProvider modulesProvider) {
    final ArrayList<ModuleWizardStep> steps = new ArrayList<ModuleWizardStep>();
    steps.add(new OCamlSourcesPathStep(moduleBuilder, null, null));
    steps.add(new OCamlSdkSelectStep(moduleBuilder, null, null, wizardContext.getProject()));
    final ModuleWizardStep supportForFrameworksStep = ProjectWizardStepFactory.getInstance().createSupportForFrameworksStep(wizardContext, moduleBuilder);
    if (supportForFrameworksStep != null) {
        steps.add(supportForFrameworksStep);
    }
    return steps.toArray(new ModuleWizardStep[steps.size()]);
}
 
开发者ID:traff,项目名称:intellij-ocaml,代码行数:14,代码来源:OCamlModuleType.java


示例9: modifySettingsStep

import com.intellij.ide.util.projectWizard.ProjectWizardStepFactory; //导入依赖的package包/类
@Nullable
@Override
public ModuleWizardStep modifySettingsStep(@NotNull SettingsStep settingsStep) {
  return ProjectWizardStepFactory.getInstance().createJavaSettingsStep(settingsStep, this, Conditions.alwaysTrue());
}
 
开发者ID:medvector,项目名称:educational-plugin,代码行数:6,代码来源:EduKotlinKoansModuleBuilder.java


示例10: createWizardSteps

import com.intellij.ide.util.projectWizard.ProjectWizardStepFactory; //导入依赖的package包/类
@Override
public List<ModuleWizardStep> createWizardSteps(ProjectFromSourcesBuilder builder, ProjectDescriptor projectDescriptor, Icon stepIcon) {
  return Collections.singletonList(ProjectWizardStepFactory.getInstance().createProjectJdkStep(builder.getContext()));
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:5,代码来源:PyProjectStructureDetector.java


示例11: createSteps

import com.intellij.ide.util.projectWizard.ProjectWizardStepFactory; //导入依赖的package包/类
public ModuleWizardStep[] createSteps(WizardContext context) {
  final ProjectWizardStepFactory stepFactory = ProjectWizardStepFactory.getInstance();
  return new ModuleWizardStep[]{new EclipseWorkspaceRootStep(context), new SelectEclipseImportedProjectsStep(context),
    stepFactory.createProjectJdkStep(context)/*, stepFactory.createNameAndLocationStep(context)*/};
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:6,代码来源:EclipseProjectImportProvider.java


示例12: modifySettingsStep

import com.intellij.ide.util.projectWizard.ProjectWizardStepFactory; //导入依赖的package包/类
@Nullable
@Override
public ModuleWizardStep modifySettingsStep(@NotNull SettingsStep settingsStep) {
    return ProjectWizardStepFactory.getInstance().createJavaSettingsStep(settingsStep, this, this::isSuitableSdkType);
}
 
开发者ID:getgauge,项目名称:Intellij-Plugin,代码行数:6,代码来源:GaugeModuleBuilder.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Container类代码示例发布时间:2022-05-22
下一篇:
Java Property类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap