Java Code Examples for org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder#create()
The following examples show how to use
org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder#create() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DevOpsEditCommand.java From fabric8-forge with Apache License 2.0 | 5 votes |
@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(); }
Example 2
Source File: ThorntailSetupFlow.java From thorntail-addon with Eclipse Public License 1.0 | 5 votes |
@Override public NavigationResult next(UINavigationContext context) throws Exception { NavigationResultBuilder builder = NavigationResultBuilder.create(); builder.add(Metadata.forCommand(SetupCommand.class).name("Thorntail: Setup") .description("Setup Thorntail in your web application"), Arrays.asList(SetupCommand.class, AddFractionCommand.class)); builder.add(SetupFractionsStep.class); return builder.build(); }
Example 3
Source File: AngularScaffoldProvider.java From angularjs-addon with Eclipse Public License 1.0 | 5 votes |
@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(); }
Example 4
Source File: AngularScaffoldProvider.java From angularjs-addon with Eclipse Public License 1.0 | 5 votes |
@Override public NavigationResult getGenerationFlow(ScaffoldGenerationContext generationContext) { NavigationResultBuilder builder = NavigationResultBuilder.create(); builder.add(ScaffoldableEntitySelectionWizard.class); return builder.build(); }
Example 5
Source File: DevOpsPipelineCommand.java From fabric8-forge with Apache License 2.0 | 4 votes |
@Override public NavigationResult next(UINavigationContext context) throws Exception { NavigationResultBuilder builder = NavigationResultBuilder.create(); builder.add(DevOpsEditStep.class); return builder.build(); }