本文整理汇总了Java中org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder类的典型用法代码示例。如果您正苦于以下问题:Java NavigationResultBuilder类的具体用法?Java NavigationResultBuilder怎么用?Java NavigationResultBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NavigationResultBuilder类属于org.jboss.forge.addon.ui.result.navigation包,在下文中一共展示了NavigationResultBuilder类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: next
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
UIContext uiContext = context.getUIContext();
ProfileSettings.updateAttributeMap(getProfileSettings(uiContext), uiContext);
// default the deployment type
Map<Object, Object> attributeMap = uiContext.getAttributeMap();
if (!attributeMap.containsKey(DeploymentType.class)) {
attributeMap.put(DeploymentType.class, DeploymentType.CD);
}
NavigationResultBuilder builder = NavigationResultBuilder.create();
builder.add(ChooseBoosterStep.class);
builder.add(Fabric8ProjectInfoStep.class);
builder.add(ChoosePipelineStep.class);
builder.add(GitHubImportRepoStep.class);
builder.add(CreateBuildConfigStep.class);
return builder.build();
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:21,代码来源:NewProjectWizard.java
示例2: next
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
NavigationResultBuilder builder = NavigationResultBuilder.create();
builder.add(ChooseDeploymentTypeStep.class)
.add(ChooseMissionStep.class)
.add(ChooseRuntimeStep.class)
.add(ProjectInfoStep.class);
return builder.build();
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:10,代码来源:NewProjectWizard.java
示例3: addNextStep
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
protected void addNextStep(NavigationResultBuilder builder, GitProvider provider) {
provider.addImportRepositoriesSteps(builder);
provider.addGitCloneStep(builder);
builder.add(ChoosePipelineStep.class);
builder.add(GitCommitAndPushStep.class);
builder.add(CreateBuildConfigStep.class);
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:9,代码来源:ImportGit.java
示例4: next
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
NavigationResultBuilder builder = NavigationResultBuilder.create();
addNextSteps(builder);
registerAttributes(context.getUIContext());
return builder.build();
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:8,代码来源:AbstractPickGitAccountStep.java
示例5: next
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
NavigationResultBuilder builder = NavigationResultBuilder.create();
GitProvider provider = gitProvider.getValue();
if (provider != null) {
context.getUIContext().getAttributeMap().put(AttributeMapKeys.GIT_PROVIDER, provider);
addNextStep(builder, provider);
}
return builder.build();
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:11,代码来源:AbstractGitProviderCommand.java
示例6: addPipelineGitHubAndOpenShiftSteps
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
/**
* Adds the steps to a wizard to pick a pipeline, create a github repository and create an OpenShift repository
*
* @param builder the wizards navigation builder
*/
public static void addPipelineGitHubAndOpenShiftSteps(NavigationResultBuilder builder) {
builder.add(ChoosePipelineStep.class);
builder.add(GitHubRepoStep.class);
builder.add(CreateBuildConfigStep.class);
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:12,代码来源:CommonSteps.java
示例7: next
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
NavigationResultBuilder builder = NavigationResultBuilder.create();
if (needFabric8Setup) {
builder.add(Fabric8SetupStep.class);
}
if (needOptionalStep) {
builder.add(DevOpsEditOptionalStep.class);
}
builder.add(DevOpsEditStep.class);
return builder.build();
}
开发者ID:fabric8io,项目名称:fabric8-forge,代码行数:13,代码来源:DevOpsEditCommand.java
示例8: next
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
Boolean value = integrationTest.getValue();
if (value != null && value) {
return NavigationResultBuilder.create().add(NewIntegrationTestClassCommand.class).build();
}
return null;
}
开发者ID:fabric8io,项目名称:fabric8-forge,代码行数:9,代码来源:Fabric8SetupStep.java
示例9: next
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) {
NavigationResultBuilder builder = NavigationResultBuilder.create();
builder.add(
Metadata.forCommand(SetupVertxCommand.class).name("Vert.x: Setup").description("Setup Vert.x")
.category(Categories.create("vert.x")),
Arrays.asList(SetupVertxCommand.class, AddDependencyCommand.class));
return builder.build();
}
开发者ID:cescoffier,项目名称:vertx-forge-addon,代码行数:10,代码来源:VertxProjectType.java
示例10: next
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception
{
NavigationResultBuilder builder = NavigationResultBuilder.create();
builder.add(ChooseDeploymentTypeStep.class)
.add(ChooseMissionStep.class)
.add(ChooseRuntimeStep.class)
.add(ProjectInfoStep.class);
return builder.build();
}
开发者ID:fabric8-launcher,项目名称:launchpad-addon,代码行数:11,代码来源:NewProjectWizard.java
示例11: next
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception
{
NavigationResultBuilder builder = NavigationResultBuilder.create();
builder.add(Metadata.forCommand(SetupCommand.class).name("WildFly Swarm: Setup")
.description("Setup WildFly Swarm in your web application"),
Arrays.asList(SetupCommand.class, AddFractionCommand.class));
builder.add(SetupFractionsStep.class);
return builder.build();
}
开发者ID:forge,项目名称:wildfly-swarm-addon,代码行数:11,代码来源:WildFlySwarmSetupFlow.java
示例12: getSetupFlow
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
public NavigationResult getSetupFlow(ScaffoldSetupContext setupContext)
{
Project project = setupContext.getProject();
NavigationResultBuilder builder = NavigationResultBuilder.create();
List<Class<? extends UICommand>> setupCommands = new ArrayList<>();
if (!project.hasFacet(JPAFacet.class))
{
builder.add(JPASetupWizard.class);
}
if (!project.hasFacet(CDIFacet.class))
{
setupCommands.add(CDISetupCommand.class);
}
if (!project.hasFacet(EJBFacet.class))
{
setupCommands.add(EJBSetupWizard.class);
}
if (!project.hasFacet(ServletFacet.class))
{
// TODO: FORGE-1296. Ensure that this wizard only sets up Servlet 3.0+
setupCommands.add(ServletSetupWizard.class);
}
if (!project.hasFacet(RestFacet.class))
{
setupCommands.add(RestSetupWizard.class);
}
if (setupCommands.size() > 0)
{
Metadata compositeSetupMetadata = Metadata.forCommand(setupCommands.get(0))
.name("Setup Facets")
.description("Setup all dependent facets for the AngularJS scaffold.");
builder.add(compositeSetupMetadata, setupCommands);
}
return builder.build();
}
开发者ID:forge,项目名称:angularjs-addon,代码行数:38,代码来源:AngularScaffoldProvider.java
示例13: getGenerationFlow
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
public NavigationResult getGenerationFlow(ScaffoldGenerationContext generationContext)
{
NavigationResultBuilder builder = NavigationResultBuilder.create();
builder.add(ScaffoldableEntitySelectionWizard.class);
return builder.build();
}
开发者ID:forge,项目名称:angularjs-addon,代码行数:8,代码来源:AngularScaffoldProvider.java
示例14: next
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
public NavigationResult next(UINavigationContext context) throws Exception {
NavigationResultBuilder nrb = Results.navigationBuilder();
nrb.add(CreateMappingCommand.class);
nrb.add(ConfigureCamelStep.class);
return nrb.build();
}
开发者ID:fabric8io,项目名称:data-mapper,代码行数:9,代码来源:NewTransformationWizard.java
示例15: addNextStep
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
protected void addNextStep(NavigationResultBuilder builder, GitProvider provider) {
provider.addConfigureStep(builder);
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:5,代码来源:ConfigureGitAccount.java
示例16: addNextSteps
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
protected void addNextSteps(NavigationResultBuilder builder) {
GitProvider provider = getMandatoryGitProvider();
provider.addCreateRepositoryStep(builder);
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:6,代码来源:PickGitAccountForNewProjectStep.java
示例17: addCreateRepositoryStep
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
public void addCreateRepositoryStep(NavigationResultBuilder builder) {
builder.add(GitHubRepoStep.class);
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:5,代码来源:GitHubProvider.java
示例18: addConfigureStep
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
public void addConfigureStep(NavigationResultBuilder builder) {
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:4,代码来源:GitHubProvider.java
示例19: addImportRepositoriesSteps
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
public void addImportRepositoriesSteps(NavigationResultBuilder builder) {
builder.add(GitHubImportPickOrganisationStep.class);
builder.add(GitHubImportPickRepositoriesStep.class);
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:6,代码来源:GitHubProvider.java
示例20: addGitCloneStep
import org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder; //导入依赖的package包/类
@Override
public void addGitCloneStep(NavigationResultBuilder builder) {
builder.add(GitHubCloneStep.class);
}
开发者ID:fabric8-launcher,项目名称:launcher-backend,代码行数:5,代码来源:GitHubProvider.java
注:本文中的org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论