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


Java ProjectImporter类代码示例

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


ProjectImporter类属于org.eclipse.che.api.project.server包,在下文中一共展示了ProjectImporter类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: configure

import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
@Override
protected void configure() {
    Multibinder<ProjectType> projectTypeMultibinder = Multibinder.newSetBinder(binder(), ProjectType.class);
    projectTypeMultibinder.addBinding().to(AdaptiveProjectType.class);

    Multibinder.newSetBinder(binder(), ProjectHandler.class).addBinding().to(AdaptiveProjectGenerator.class);
    Multibinder.newSetBinder(binder(), ProjectImporter.class).addBinding().to(AdaptiveProjectGenerator.class);

    Multibinder<Builder> builderMultibinder = Multibinder.newSetBinder(binder(), Builder.class);
    builderMultibinder.addBinding().to(AdaptiveBuilder.class);

}
 
开发者ID:AdaptiveMe,项目名称:adaptive-services-dashbar,代码行数:13,代码来源:AdaptivePluginModule.java

示例2: configure

import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
protected void configure() {
  Multibinder<ProjectImporter> projectImporterMultibinder =
      Multibinder.newSetBinder(binder(), ProjectImporter.class);
  projectImporterMultibinder.addBinding().to(GitProjectImporter.class);
  Multibinder.newSetBinder(binder(), ProjectTypeDef.class).addBinding().to(GitProjectType.class);
  bind(GitConfigurationChecker.class).asEagerSingleton();

  Multibinder<VcsStatusProvider> vcsStatusProviderMultibinder =
      newSetBinder(binder(), VcsStatusProvider.class);
  vcsStatusProviderMultibinder.addBinding().to(GitStatusProvider.class);

  Multibinder<ValueProviderFactory> multiBinder =
      Multibinder.newSetBinder(binder(), ValueProviderFactory.class);
  multiBinder.addBinding().to(GitValueProviderFactory.class);

  bind(GitUserResolver.class).to(LocalGitUserResolver.class);

  bind(GitService.class);
  bind(GitExceptionMapper.class);
  bind(BranchListWriter.class);
  bind(CommitMessageWriter.class);
  bind(MergeResultWriter.class);
  bind(RemoteListWriter.class);
  bind(StatusPageWriter.class);
  bind(TagListWriter.class);
  bind(GitJsonRpcMessenger.class);

  Multibinder.newSetBinder(binder(), CredentialsProvider.class)
      .addBinding()
      .to(GitBasicAuthenticationCredentialsProvider.class);

  bind(GitCheckoutDetector.class).asEagerSingleton();
  bind(GitChangesDetector.class).asEagerSingleton();
  bind(GitStatusChangedDetector.class).asEagerSingleton();
}
 
开发者ID:eclipse,项目名称:che,代码行数:38,代码来源:GitModule.java

示例3: asDto

import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
/** Converts {@link ProjectImporter} to {@link ProjectImporterDescriptor}. */
public static ProjectImporterDescriptor asDto(ProjectImporter importer) {
  return newDto(ProjectImporterDescriptor.class)
      .withId(importer.getId())
      .withInternal(importer.isInternal())
      .withCategory(importer.getSourceCategory().getValue())
      .withDescription(
          importer.getDescription() != null
              ? importer.getDescription()
              : "description not found");
}
 
开发者ID:eclipse,项目名称:che,代码行数:12,代码来源:ProjectDtoConverter.java

示例4: configure

import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
protected void configure() {
  bind(GitHubDTOFactory.class);

  Multibinder<ProjectImporter> projectImporterMultibinder =
      Multibinder.newSetBinder(binder(), ProjectImporter.class);
  projectImporterMultibinder.addBinding().to(GitHubProjectImporter.class);

  Multibinder.newSetBinder(binder(), SshKeyUploader.class)
      .addBinding()
      .to(GitHubKeyUploader.class);

  bind(GitHubService.class);
}
 
开发者ID:eclipse,项目名称:che,代码行数:16,代码来源:GitHubModule.java

示例5: ProjectImporterRegistry

import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
@Inject
public ProjectImporterRegistry(Set<ProjectImporter> importers) {
  importers.forEach(importer -> this.importers.put(importer.getId(), importer));
}
 
开发者ID:eclipse,项目名称:che,代码行数:5,代码来源:ProjectImporterRegistry.java

示例6: get

import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
public Optional<ProjectImporter> get(String type) {
  return type == null ? empty() : ofNullable(importers.get(type));
}
 
开发者ID:eclipse,项目名称:che,代码行数:4,代码来源:ProjectImporterRegistry.java

示例7: getOrNull

import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
public ProjectImporter getOrNull(String type) {
  return get(type).orElse(null);
}
 
开发者ID:eclipse,项目名称:che,代码行数:4,代码来源:ProjectImporterRegistry.java

示例8: getAll

import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
public Set<ProjectImporter> getAll() {
  return unmodifiableSet(new HashSet<>(importers.values()));
}
 
开发者ID:eclipse,项目名称:che,代码行数:4,代码来源:ProjectImporterRegistry.java

示例9: getAllAsList

import org.eclipse.che.api.project.server.ProjectImporter; //导入依赖的package包/类
public List<ProjectImporter> getAllAsList() {
  return unmodifiableList(new ArrayList<>(importers.values()));
}
 
开发者ID:eclipse,项目名称:che,代码行数:4,代码来源:ProjectImporterRegistry.java


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