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

Java ProjectFromSourcesBuilder类代码示例

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

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



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

示例1: FrameworkDetectionStep

import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder; //导入依赖的package包/类
public FrameworkDetectionStep(final Icon icon, final ProjectFromSourcesBuilder builder) {
  super(ProjectBundle.message("message.text.stop.searching.for.frameworks", ApplicationNamesInfo.getInstance().getProductName()));
  myIcon = icon;
  myContext = new FrameworkDetectionInWizardContext() {
    @Override
    protected List<ModuleDescriptor> getModuleDescriptors() {
      return FrameworkDetectionStep.this.getModuleDescriptors();
    }

    @Override
    protected String getContentPath() {
      return builder.getBaseProjectPath();
    }
  };
  myDetectedFrameworksComponent = new DetectedFrameworksComponent(myContext);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:17,代码来源:FrameworkDetectionStep.java


示例2: ModulesDetectionStep

import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder; //导入依赖的package包/类
public ModulesDetectionStep(ProjectStructureDetector detector,
                            ProjectFromSourcesBuilder builder,
                            ProjectDescriptor projectDescriptor, final ModuleInsight insight,
                            Icon icon,
                            @NonNls String helpId) {
  super("Stop module analysis?");
  myDetector = detector;
  myBuilder = builder;
  myProjectDescriptor = projectDescriptor;
  myInsight = insight;
  myIcon = icon;
  myHelpId = helpId;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:14,代码来源:ModulesDetectionStep.java


示例3: createWizardSteps

import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder; //导入依赖的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


示例4: createWizardSteps

import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder; //导入依赖的package包/类
@Override
public List<ModuleWizardStep> createWizardSteps(ProjectFromSourcesBuilder builder,
                                                ProjectDescriptor projectDescriptor,
                                                Icon stepIcon) {
  List<ModuleWizardStep> result = new ArrayList<ModuleWizardStep>();
  for (CloudGitDeploymentDetector deploymentDetector : CloudGitDeploymentDetector.EP_NAME.getExtensions()) {
    result.add(new CloudGitChooseAccountStepImpl(deploymentDetector, this, builder, projectDescriptor));
  }
  return result;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:CloudGitProjectStructureDetector.java


示例5: CloudGitChooseAccountStepImpl

import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder; //导入依赖的package包/类
public CloudGitChooseAccountStepImpl(CloudGitDeploymentDetector deploymentDetector,
                                     CloudGitProjectStructureDetector structureDetector,
                                     ProjectFromSourcesBuilder builder,
                                     ProjectDescriptor projectDescriptor) {
  super(deploymentDetector, builder.getContext());
  myBuilder = builder;
  myProjectDescriptor = projectDescriptor;

  myStructureDetector = structureDetector;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:11,代码来源:CloudGitChooseAccountStepImpl.java


示例6: GroovySdkForProjectFromSourcesStep

import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder; //导入依赖的package包/类
public GroovySdkForProjectFromSourcesStep(MvcProjectStructureDetector detector, ProjectFromSourcesBuilder builder,
                                          ProjectDescriptor projectDescriptor,
                                          MvcFramework framework) {
  super(framework, builder.getContext(), builder.getBaseProjectPath());
  myDetector = detector;
  myBuilder = builder;
  myProjectDescriptor = projectDescriptor;
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:9,代码来源:GroovySdkForProjectFromSourcesStep.java


示例7: createWizardSteps

import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder; //导入依赖的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


示例8: setupProjectStructure

import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder; //导入依赖的package包/类
@Override
public void setupProjectStructure(@NotNull Collection<DetectedProjectRoot> roots,
                                  @NotNull ProjectDescriptor projectDescriptor,
                                  @NotNull ProjectFromSourcesBuilder builder) {
    if (!roots.isEmpty() && !builder.hasRootsFromOtherDetectors(this)) {
        List<ModuleDescriptor> modules = projectDescriptor.getModules();
        if (modules.isEmpty()) {
            modules = new ArrayList<ModuleDescriptor>();
            for (DetectedProjectRoot root : roots) {
                modules.add(new ModuleDescriptor(root.getDirectory(), SquirrelModuleType.getInstance(), ContainerUtil.<DetectedSourceRoot>emptyList()));
            }
            projectDescriptor.setModules(modules);
        }
    }
}
 
开发者ID:shvetsgroup,项目名称:squirrel-lang-idea-plugin,代码行数:16,代码来源:SquirrelProjectStructureDetector.java


示例9: createWizardSteps

import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder; //导入依赖的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


示例10: GroovySdkForProjectFromSourcesStep

import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder; //导入依赖的package包/类
public GroovySdkForProjectFromSourcesStep(MvcProjectStructureDetector detector, ProjectFromSourcesBuilder builder,
                                          ProjectDescriptor projectDescriptor,
                                          MvcFramework framework) {
  super(framework, builder.getContext());
  myDetector = detector;
  myBuilder = builder;
  myProjectDescriptor = projectDescriptor;
}
 
开发者ID:lshain-android-source,项目名称:tools-idea,代码行数:9,代码来源:GroovySdkForProjectFromSourcesStep.java


示例11: createWizardSteps

import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder; //导入依赖的package包/类
@Override
public List<ModuleWizardStep> createWizardSteps(ProjectFromSourcesBuilder builder, ProjectDescriptor projectDescriptor, Icon stepIcon) {
  HaxeModuleInsight moduleInsight =
    new HaxeModuleInsight(new DelegatingProgressIndicator(), builder.getExistingModuleNames(), builder.getExistingProjectLibraryNames());
  final List<ModuleWizardStep> steps = new ArrayList<ModuleWizardStep>();
  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 ProjectJdkForModuleStep(builder.getContext(), HaxeSdkType.getInstance()));
  return steps;
}
 
开发者ID:HaxeFoundation,项目名称:intellij-haxe,代码行数:13,代码来源:HaxeProjectStructureDetector.java


示例12: setupProjectStructure

import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder; //导入依赖的package包/类
@Override
public void setupProjectStructure(@NotNull Collection<DetectedProjectRoot> roots,
                                  @NotNull ProjectDescriptor projectDescriptor,
                                  @NotNull final ProjectFromSourcesBuilder builder) {
  if (!roots.isEmpty() && !builder.hasRootsFromOtherDetectors(this)) {
    List<ModuleDescriptor> modules = projectDescriptor.getModules();
    if (modules.isEmpty()) {
      modules = new ArrayList<ModuleDescriptor>();
      for (DetectedProjectRoot root : roots) {
       modules.add(new ModuleDescriptor(new File(builder.getBaseProjectPath()), DeftModuleType.getInstance(), root));
      }
      projectDescriptor.setModules(modules);
    }
  }
}
 
开发者ID:dylan-foundry,项目名称:DeftIDEA,代码行数:16,代码来源:DeftProjectStructureDetector.java


示例13: createWizardSteps

import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder; //导入依赖的package包/类
@Override
public List<ModuleWizardStep> createWizardSteps(ProjectFromSourcesBuilder builder,
                                                ProjectDescriptor projectDescriptor,
                                                Icon stepIcon) {
  List<ModuleWizardStep> steps = new ArrayList<ModuleWizardStep>();
  steps.add(new ProjectJdkForModuleStep(builder.getContext(), DeftSdkType.getInstance()));
  return steps;
}
 
开发者ID:dylan-foundry,项目名称:DeftIDEA,代码行数:9,代码来源:DeftProjectStructureDetector.java


示例14: setupProjectStructure

import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder; //导入依赖的package包/类
@Override
public void setupProjectStructure(@NotNull Collection<DetectedProjectRoot> roots,
                                  @NotNull ProjectDescriptor projectDescriptor,
                                  @NotNull ProjectFromSourcesBuilder builder) {
  builder.setupModulesByContentRoots(projectDescriptor, roots);
}
 
开发者ID:jskierbi,项目名称:intellij-ce-playground,代码行数:7,代码来源:PyProjectStructureDetector.java


示例15: createWizardSteps

import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder; //导入依赖的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


示例16: createWizardSteps

import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder; //导入依赖的package包/类
@NotNull
@Override
public List<ModuleWizardStep> createWizardSteps(@NotNull ProjectFromSourcesBuilder builder, ProjectDescriptor projectDescriptor, Icon stepIcon) {
    return Collections.emptyList();
}
 
开发者ID:shvetsgroup,项目名称:squirrel-lang-idea-plugin,代码行数:6,代码来源:SquirrelProjectStructureDetector.java


示例17: setupProjectStructure

import com.intellij.ide.util.projectWizard.importSources.ProjectFromSourcesBuilder; //导入依赖的package包/类
@Override
public void setupProjectStructure(
        final Collection<DetectedProjectRoot> roots,
        final ProjectDescriptor projectDescriptor,
        final ProjectFromSourcesBuilder builder) {

    if (roots.isEmpty() || builder.hasRootsFromOtherDetectors(this))
        return;

    List<ModuleDescriptor> modules = projectDescriptor.getModules();
    if (!modules.isEmpty())
        return;
    modules = new ArrayList<>();
    for (final DetectedProjectRoot root : roots) {

        final File rootDir = root.getDirectory();
        final ModuleDescriptor descriptor = new ModuleDescriptor(
                rootDir,
                this.moduleType,
                Collections.emptyList()
        );

        final ConfigRequest<ILanguageComponentConfig> request = this.configService.get(this.resourceService.resolve(rootDir));
        final LanguageIdentifier languageId = request.config().identifier();

        descriptor.addConfigurationUpdater(new ModuleBuilder.ModuleConfigurationUpdater() {
            @Override
            public void update(@NotNull final Module module, @NotNull final ModifiableRootModel rootModel) {
                final ContentEntry contentEntry = rootModel.getContentEntries()[0];
                final FileObject contentEntryFile = MetaborgProjectDetector.this.resourceService.resolve(contentEntry.getUrl());
                try {
                    final List<Pair<String, String>> sourcePaths = ModuleBuilderUtils.getSourcePaths(languageId, contentEntryFile);
                    ModuleBuilderUtils.addSourceRoots(contentEntry, sourcePaths);
                    ModuleBuilderUtils.excludeRoots(contentEntry, contentEntryFile);
                } catch (ConfigurationException e) {
                    throw new UnhandledException(e);
                }
            }
        });

        modules.add(descriptor);
    }
    projectDescriptor.setModules(modules);
}
 
开发者ID:metaborg,项目名称:spoofax-intellij,代码行数:45,代码来源:MetaborgProjectDetector.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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