@Override
 public UICommandMetadata getMetadata(UIContext context) {
   return Metadata.forCommand(getClass())
       .name("Java: Generate Getters and Setters")
       .description("Generates mutators and accessors for the given class")
       .category(Categories.create("Java"));
 }
Example #2
0
 @Override
 public UICommandMetadata getMetadata(UIContext context) {
   return Metadata.forCommand(getClass())
       .name("Archetype: Add")
       .category(Categories.create("Maven"))
       .description("Adds an archetype catalog to the Forge configuration file");
 }
 @Override
 public UICommandMetadata getMetadata(UIContext context) {
   return Metadata.forCommand(getClass())
       .name("Java: New Package")
       .description("Creates a new package")
       .category(Categories.create("Java"));
 }
 @Override
 public Metadata getMetadata(UIContext context) {
   return Metadata.from(super.getMetadata(context), getClass())
       .name("CDI: New Scope")
       .description("Creates a new CDI Scope annotation")
       .category(Categories.create(super.getMetadata(context).getCategory(), "CDI"));
 }
Example #5
0
 @Override
 public UICommandMetadata getMetadata(UIContext context) {
   return Metadata.from(super.getMetadata(context), getClass())
       .category(Categories.create(CATEGORY))
       .name(CATEGORY + ": New Build")
       .description("Create a new build configuration");
 }
 @Override
 public UICommandMetadata getMetadata(UIContext context) {
   return Metadata.forCommand(RemoveRepositoryCommand.class)
       .description("Remove a repository configured in the current project descriptor.")
       .name("Project: Remove Repository")
       .category(Categories.create("Project", "Manage"));
 }
 @Override
 public UICommandMetadata getMetadata(UIContext context) {
   return Metadata.forCommand(getClass())
       .name("Addon: Test Setup")
       .description("Add addon test setup to this project")
       .category(Categories.create("Forge", "Generate"));
 }
 @Override
 public UICommandMetadata getMetadata(UIContext context) {
   return Metadata.forCommand(ConnectCommand.class)
       .name("camel-catalog-language-list")
       .category(Categories.create(CATEGORY_CATALOG))
       .description("Lists all Camel languages from the Camel catalog");
 }
Example #9
0
 @Override
 public UICommandMetadata getMetadata(UIContext context) {
   return Metadata.forCommand(getClass())
       .name("Project: New")
       .description("Create a new project")
       .category(Categories.create("Project", "Generation"));
 }
 @Override
 public UICommandMetadata getMetadata(UIContext context) {
   return Metadata.forCommand(getClass())
       .category(Categories.create(AbstractDevOpsCommand.CATEGORY))
       .name(AbstractDevOpsCommand.CATEGORY + ": Configure")
       .description("Configure the Pipeline for the new project");
 }
Example #11
0
 @Override
 public UICommandMetadata getMetadata(UIContext context) {
   return Metadata.forCommand(ConnectCommand.class)
       .name("camel-route-show")
       .category(Categories.create(CATEGORY))
       .description("Display the Camel route definition in XML");
 }
 @Override
 public UICommandMetadata getMetadata(UIContext context) {
   return Metadata.forCommand(AddDependenciesCommand.class)
       .description("Add one or more arguments to the current project.")
       .name("Project: Add Dependencies")
       .category(Categories.create("Project", "Manage"));
 }
Example #13
0
  @Override
  public NavigationResult getSetupFlow(ScaffoldSetupContext setupContext) {
    Project project = setupContext.getProject();
    setProject(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(FacesFacet.class)) {
      setupCommands.add(FacesSetupWizard.class);
    }

    Metadata compositeSetupMetadata =
        Metadata.forCommand(ScaffoldSetupWizard.class)
            .name("Setup Facets")
            .description("Setup all dependent facets for the Faces scaffold.");
    builder.add(compositeSetupMetadata, setupCommands);
    return builder.build();
  }
 @Override
 public Metadata getMetadata(UIContext context) {
   return Metadata.forCommand(getClass())
       .name("Connection: Create Profile")
       .description("Command to create a database connection profile.")
       .category(Categories.create("Database", "Connections"));
 }
Example #15
0
 @Override
 public Metadata getMetadata(UIContext context) {
   return Metadata.from(super.getMetadata(context), getClass())
       .name("JPA: Setup")
       .description("Setup JPA in your project")
       .category(Categories.create(super.getMetadata(context).getCategory().getName(), "JPA"));
 }
Example #16
0
 @Override
 public UICommandMetadata getMetadata(UIContext context) {
   return Metadata.forCommand(ConnectCommand.class)
       .name("camel-context-start")
       .category(Categories.create(CATEGORY))
       .description("Start a Camel context");
 }
  @Override
  public UICommandMetadata getMetadata(UIContext context) {

    return Metadata.from(super.getMetadata(context), getClass())
        .name("CDI: New Conversation")
        .description("Creates a conversation block in the specified method")
        .category(Categories.create(super.getMetadata(context).getCategory(), "CDI"));
  }
 @Override
 public UICommandMetadata getMetadata(UIContext context) {
   return Metadata.forCommand(ExceptionOnNextWizardStep.class)
       .name("exception-on-next")
       .description("Tests Exceptions");
 }
 @Override
 public UICommandMetadata getMetadata(UIContext context) {
   return Metadata.forCommand(getClass())
       .name("Maven: Choose Archetype")
       .description("Enter a Maven archetype coordinate");
 }
Example #20
0
 @Override
 public UICommandMetadata getMetadata(UIContext context) {
   return Metadata.from(super.getMetadata(context), getClass())
       .name("wait")
       .description("Wait for ENTER.");
 }
 @Override
 public UICommandMetadata getMetadata(UIContext context) {
   return Metadata.from(super.getMetadata(context), getClass())
       .category(Categories.create(Categories.create("Java EE"), "JAX-RS"));
 }
 @Override
 public UICommandMetadata getMetadata(UIContext context) {
   return Metadata.forCommand(SpringBootRepositoryCommand.class)
       .name("Spring Boot: Repository")
       .category(Categories.create("Spring Boot"));
 }
Example #23
0
 @Override
 public Metadata getMetadata(UIContext context) {
   return Metadata.from(super.getMetadata(context), getClass())
       .name("JavaEE: Setup")
       .description("Setup Java EE in your project");
 }