示例#1
0
 @Override
 public void initializeUI(UIBuilder builder) throws Exception {
   initContainers(builder.getUIContext());
   initProviders();
   initConfigureMetadata();
   builder.add(jpaVersion).add(container).add(provider).add(configureMetadata);
 }
 @Override
 public void initializeUI(UIBuilder builder) throws Exception {
   InputComponentFactory inputFactory = builder.getInputComponentFactory();
   archetypeGroupId =
       inputFactory
           .createInput("archetypeGroupId", String.class)
           .setLabel("Archetype Group Id")
           .setRequired(true);
   archetypeArtifactId =
       inputFactory
           .createInput("archetypeArtifactId", String.class)
           .setLabel("Archetype Artifact Id")
           .setRequired(true);
   archetypeVersion =
       inputFactory
           .createInput("archetypeVersion", String.class)
           .setLabel("Archetype Version")
           .setRequired(true);
   archetypeRepository =
       inputFactory
           .createInput("archetypeRepository", String.class)
           .setLabel("Archetype repository URL")
           .setRequired(true);
   builder
       .add(archetypeGroupId)
       .add(archetypeArtifactId)
       .add(archetypeVersion)
       .add(archetypeRepository);
 }
 @Override
 public void initializeUI(UIBuilder builder) throws Exception {
   setupTargetClass(builder.getUIContext());
   properties.setValueChoices(
       new Callable<Iterable<String>>() {
         @Override
         public Iterable<String> call() throws Exception {
           List<String> strings = new ArrayList<>();
           JavaResource javaResource = targetClass.getValue();
           JavaClassSource targetClass = javaResource.getJavaType();
           List<PropertySource<JavaClassSource>> properties = targetClass.getProperties();
           for (PropertySource<JavaClassSource> property : properties) {
             strings.add(property.getName());
           }
           return strings;
         }
       });
   properties.setEnabled(
       new Callable<Boolean>() {
         @Override
         public Boolean call() {
           return (targetClass.getValue() != null);
         }
       });
   builder.add(targetClass).add(builderPattern).add(properties);
 }
 @Override
 public void initializeUI(UIBuilder builder) throws Exception {
   builder
       .add(named)
       .add(timeout)
       .add(conversationFieldName)
       .add(beginMethodName)
       .add(endMethodName)
       .add(overwrite);
 }
示例#5
0
  @Override
  public void initializeUI(final UIBuilder builder) throws Exception {
    super.initializeUI(builder);

    buildName.setDefaultValue(
        new Callable<String>() {
          @Override
          public String call() throws Exception {
            Model mavenModel = getMavenModel(builder);
            if (mavenModel != null) {
              return mavenModel.getArtifactId();
            }
            return null;
          }
        });
    builder.add(buildName);
    builder.add(imageName);
    builder.add(gitUri);
    builder.add(outputImage);
    builder.add(webHookSecret);
  }
  @Override
  public void initializeUI(UIBuilder builder) throws Exception {
    super.initializeUI(builder);

    UIContext context = builder.getUIContext();
    Project project = getSelectedProject(context);
    JavaSourceFacet javaSourceFacet = project.getFacet(JavaSourceFacet.class);

    final List<JavaResource> entities = persistenceOperations.getProjectEntities(project);
    forEntity.setValueChoices(entities);
    setDefaultTargetEntity(context.<FileResource<?>>getInitialSelection(), entities);

    getTargetPackage().setDescription("Repository package name");
    getTargetPackage()
        .setDefaultValue(javaSourceFacet.getBasePackage() + DEFAULT_REPOSITORY_PACKAGE);

    repositoryType.setDefaultValue(SpringBootRepositoryType.PAGING_AND_SORTING);

    builder.add(forEntity);
    builder.add(repositoryType);
  }
 @Override
 public void initializeUI(UIBuilder builder) throws Exception {
   Set<AddonId> choices = new TreeSet<>();
   for (AddonRepository repository : furnace.getRepositories()) {
     // Avoid immutable repositories
     if (repository instanceof MutableAddonRepository) {
       for (AddonId id : repository.listEnabled()) {
         if (id.getName().contains(":")) choices.add(id);
       }
     }
   }
   addonDependencies.setValueChoices(choices);
   addonDependencies.setDefaultValue(new ArrayList<AddonId>());
   builder.add(addonDependencies);
 }
示例#8
0
 @Override
 public void initializeUI(UIBuilder builder) throws Exception {
   InputComponentFactory factory = builder.getInputComponentFactory();
   named =
       factory
           .createInput("named", String.class)
           .setLabel("Archetype catalog Name")
           .setDescription("The archetype catalog name to be used")
           .setRequired(true);
   url =
       factory
           .createInput("url", URLResource.class)
           .setLabel("Archetype catalog URL")
           .setDescription("The archetype catalog URL to be used")
           .setRequired(true);
   builder.add(named).add(url);
 }
示例#9
0
  @Override
  public void initializeUI(final UIBuilder builder) throws Exception {
    configureProjectNamedInput();
    configureVersionInput();
    configureTargetLocationInput(builder);
    configureOverwriteInput();
    configureProjectTypeInput(builder);
    configureTopLevelPackageInput();
    configureBuildSystemInput();

    builder
        .add(named)
        .add(topLevelPackage)
        .add(version)
        .add(finalName)
        .add(targetLocation)
        .add(overwrite)
        .add(type)
        .add(buildSystem);
  }
示例#10
0
 @Override
 public void initializeUI(UIBuilder builder) throws Exception {
   name.setCompleter(new CamelContextCompleter(getController()));
   builder.add(name);
 }
示例#11
0
 @Override
 public void initializeUI(UIBuilder builder) throws Exception {
   builder.add(named).add(createPackageInfo).add(testFolder);
 }
示例#12
0
 @Override
 public void initializeUI(UIBuilder builder) throws Exception {
   builder.add(javaEEVersion);
 }
 @Override
 public void initializeUI(UIBuilder builder) throws Exception {
   builder.add(url);
 }
 @Override
 public void initializeUI(UIBuilder builder) throws Exception {
   builder.add(label).add(verbose);
 }
 @Override
 public void initializeUI(UIBuilder builder) throws Exception {
   builder.add(name);
   super.initializeUI(builder);
 }
 @Override
 public void initializeUI(UIBuilder builder) throws Exception {
   super.initializeUI(builder);
   builder.add(pseudo).add(passivating);
 }