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


Java ContributionWorkflow类代码示例

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


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

示例1: configure

import org.eclipse.che.plugin.pullrequest.client.workflow.ContributionWorkflow; //导入依赖的package包/类
@Override
protected void configure() {
  final GinMapBinder<String, ContributionWorkflow> workflowBinder =
      GinMapBinder.newMapBinder(binder(), String.class, ContributionWorkflow.class);
  workflowBinder
      .addBinding(BitbucketHostingService.SERVICE_NAME)
      .to(com.codenvy.plugin.pullrequest.client.BitbucketContributionWorkflow.class);

  final GinMapBinder<String, StagesProvider> stagesProvider =
      GinMapBinder.newMapBinder(binder(), String.class, StagesProvider.class);
  stagesProvider
      .addBinding(BitbucketHostingService.SERVICE_NAME)
      .to(com.codenvy.plugin.pullrequest.client.BitbucketStagesProvider.class);

  final GinMultibinder<VcsHostingService> vcsHostingService =
      GinMultibinder.newSetBinder(binder(), VcsHostingService.class);
  vcsHostingService.addBinding().to(BitbucketHostingService.class);
}
 
开发者ID:codenvy,项目名称:codenvy,代码行数:19,代码来源:BitbucketPullRequestGinModule.java

示例2: configure

import org.eclipse.che.plugin.pullrequest.client.workflow.ContributionWorkflow; //导入依赖的package包/类
@Override
protected void configure() {
  final GinMapBinder<String, ContributionWorkflow> workflowBinder =
      GinMapBinder.newMapBinder(binder(), String.class, ContributionWorkflow.class);
  workflowBinder
      .addBinding(MicrosoftHostingService.SERVICE_NAME)
      .to(VstsContributionWorkflow.class);

  final GinMapBinder<String, StagesProvider> stagesProvider =
      GinMapBinder.newMapBinder(binder(), String.class, StagesProvider.class);
  stagesProvider.addBinding(MicrosoftHostingService.SERVICE_NAME).to(VstsStagesProvider.class);

  final GinMultibinder<VcsHostingService> vcsHostingService =
      GinMultibinder.newSetBinder(binder(), VcsHostingService.class);
  vcsHostingService.addBinding().to(MicrosoftHostingService.class);
}
 
开发者ID:codenvy,项目名称:codenvy,代码行数:17,代码来源:VstsPullRequestGinModule.java

示例3: configure

import org.eclipse.che.plugin.pullrequest.client.workflow.ContributionWorkflow; //导入依赖的package包/类
@Override
protected void configure() {
  final GinMapBinder<String, ContributionWorkflow> workflowBinder =
      GinMapBinder.newMapBinder(binder(), String.class, ContributionWorkflow.class);
  workflowBinder
      .addBinding(GitHubHostingService.SERVICE_NAME)
      .to(GitHubContributionWorkflow.class);

  final GinMapBinder<String, StagesProvider> stagesProvider =
      GinMapBinder.newMapBinder(binder(), String.class, StagesProvider.class);
  stagesProvider.addBinding(GitHubHostingService.SERVICE_NAME).to(GithubStagesProvider.class);

  final GinMultibinder<VcsHostingService> vcsHostingService =
      GinMultibinder.newSetBinder(binder(), VcsHostingService.class);
  vcsHostingService.addBinding().to(GitHubHostingService.class);
}
 
开发者ID:eclipse,项目名称:che,代码行数:17,代码来源:GithubPullRequestGinModule.java


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