Examples of NavigationResultBuilder


Examples of org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder

   {
      if (next == null)
      {
         return null;
      }
      NavigationResultBuilder builder = navigationBuilder();
      for (Class<? extends UICommand> type : next)
      {
         builder.add(type);
      }
      return builder.build();
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder

            Class<? extends UICommand>... additional)
   {
      if (next == null)
         return null;

      NavigationResultBuilder builder = navigationBuilder();
      builder.add(next);
      for (Class<? extends UICommand> type : additional)
      {
         builder.add(type);
      }
      return builder.build();
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder

      return builder.build();
   }

   public static NavigationResultBuilder navigationBuilder()
   {
      NavigationResultBuilder builder = NavigationResultBuilder.create();
      return builder;
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder

   }

   @Override
   public NavigationResult getPrerequisiteCommands(UIContext context)
   {
      NavigationResultBuilder builder = NavigationResultBuilder.create();
      Project project = getSelectedProject(context);
      if (project != null)
      {
         if (!project.hasFacet(RestFacet.class))
         {
            builder.add(RestSetupWizard.class);
         }
      }
      return builder.build();
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder

      // Get the navigation result entries from the selected scaffold provider
      NavigationResult setupFlow = selectedProvider.getSetupFlow(getSelectedProject(uiContext));

      // Add the execution logic step in the end so that the scaffold setup step is executed last after all other steps
      NavigationResultBuilder builder = NavigationResultBuilder.create(setupFlow);
      NavigationResult navigationResult = builder.add(ScaffoldExecuteSetupStep.class).build();

      return navigationResult;
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder

      Project project = getSelectedProject(uiContext);
      NavigationResult generationFlow = selectedProvider.getGenerationFlow(project);

      // Add the execution logic step in the end so that the scaffold generation step is executed last after all other
      // steps
      NavigationResultBuilder builder = NavigationResultBuilder.create(generationFlow);
      NavigationResult navigationResult = builder.add(ScaffoldExecuteGenerationStep.class).build();

      return navigationResult;
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder

   }

   @Override
   public NavigationResult getPrerequisiteCommands(UIContext context)
   {
      NavigationResultBuilder builder = NavigationResultBuilder.create();
      Project project = getSelectedProject(context);
      if (project != null)
      {
         if (!project.hasFacet(RestFacet.class))
         {
            builder.add(RestSetupWizard.class);
         }
         if (!project.hasFacet(JPAFacet.class))
         {
            builder.add(JPASetupWizard.class);
         }
         if (!project.hasFacet(EJBFacet.class))
         {
            builder.add(EJBSetupWizard.class);
         }
      }
      return builder.build();
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder

   }

   @Override
   public NavigationResult getPrerequisiteCommands(UIContext context)
   {
      NavigationResultBuilder builder = NavigationResultBuilder.create();
      Project project = getSelectedProject(context);
      if (project != null)
      {
         if (!project.hasFacet(JPAFacet.class))
         {
            builder.add(JPASetupWizard.class);
         }
      }
      return builder.build();
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder

   }

   @Override
   public NavigationResult getPrerequisiteCommands(UIContext context)
   {
      NavigationResultBuilder builder = NavigationResultBuilder.create();
      Project project = getSelectedProject(context);
      if (project != null)
      {
         if (!project.hasFacet(ValidationFacet.class))
         {
            builder.add(ValidationProviderSetupCommand.class);
         }
      }
      return builder.build();
   }
View Full Code Here

Examples of org.jboss.forge.addon.ui.result.navigation.NavigationResultBuilder

   }

   @Override
   public NavigationResult getPrerequisiteCommands(UIContext context)
   {
      NavigationResultBuilder builder = NavigationResultBuilder.create();
      Project project = getSelectedProject(context);
      if (project != null)
      {
         if (!project.hasFacet(JPAFacet.class))
         {
            builder.add(JPASetupWizard.class);
         }
      }
      return builder.build();
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.