本文整理汇总了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);
}
示例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);
}
示例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);
}