@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"); builder.add(named); }
@Override public void initializeUI(UIBuilder builder) throws Exception { InputComponentFactory factory = builder.getInputComponentFactory(); this.arguments = factory.createInputMany("arguments", String.class) .setLabel("Arguments") .setRequired(true); builder.add(arguments); }
@Override public void initializeUI(UIBuilder builder) throws Exception { all = builder.getInputComponentFactory().createInput("all", Boolean.class) .setLabel("Show all available stacks").setDescription("Show all available stacks"); builder.add(all); }
@Override public void initializeUI(UIBuilder builder) throws Exception { InputComponentFactory factory = builder.getInputComponentFactory(); names = factory.createSelectMany("names", String.class).setLabel("Connection Name") .setDescription("The name of the database connection profiles you want to remove."); ConnectionProfileManagerProvider provider = SimpleContainer .getServices(getClass().getClassLoader(), ConnectionProfileManagerProvider.class).get(); profiles = provider.getConnectionProfileManager().loadConnectionProfiles(); names.setValueChoices(profiles.keySet()); builder.add(names); }
@Override public void initializeUI(UIBuilder builder) throws Exception { InputComponentFactory factory = builder.getInputComponentFactory(); url = factory.createInput("url", String.class).setLabel("Repository URL").setRequired(true) .setDescription("The repository URL"); builder.add(url); }
@Override public void initializeUI(UIBuilder builder) throws Exception { InputComponentFactory factory = builder.getInputComponentFactory(); arguments = factory.createInputMany("arguments", 'd', String.class).setLabel("Coordinates").setRequired(true) .setDescription( "The coordinates of the arguments to be added [groupId :artifactId {:version :scope :packaging}]"); builder.add(arguments); }
@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); builder.add(named); }
@Override public void initializeUI(UIBuilder builder) throws Exception { InputComponentFactory factory = builder.getInputComponentFactory(); arguments = factory.createInputMany("arguments", 'd', Dependency.class).setLabel("Coordinates").setRequired(true) .setDescription( "The coordinates of the managed arguments to be added [groupId :artifactId {:version :scope :packaging}]"); builder.add(arguments); }
@Override public void initializeUI(UIBuilder builder) throws Exception { InputComponentFactory factory = builder.getInputComponentFactory(); named = factory.createInput("named", String.class).setLabel("Command name").setRequired(true); categories = factory.createInputMany("categories", String.class).setLabel("Categories"); categories.setDefaultValue(new ArrayList<String>()); builder.add(named).add(categories); }
@Override public void initializeUI(UIBuilder builder) throws Exception { InputComponentFactory factory = builder.getInputComponentFactory(); super.initializeUI(builder); commandName = factory.createInput("commandName", String.class).setLabel("Command name"); categories = factory.createInputMany("categories", String.class).setLabel("Categories"); categories.setDefaultValue(new ArrayList<String>()); builder.add(commandName).add(categories); }
@Override public void initializeUI(UIBuilder builder) throws Exception { InputComponentFactory factory = builder.getInputComponentFactory(); name = factory.createInput("name", String.class).setLabel("Connection Name") .setDescription("The name you want to give to this database connection.").setRequired(true); builder.add(name); super.initializeUI(builder); }
@Override public void initializeUI(UIBuilder builder) throws Exception { InputComponentFactory factory = builder.getInputComponentFactory(); arguments = factory.createInputMany("arguments", 'd', Dependency.class).setLabel("Coordinates").setRequired(true) .setDescription( "The coordinates of the arguments to be checked [groupId :artifactId {:version :scope :packaging}]"); effective = factory.createInput("effective", 'e', Boolean.class).setLabel("Effective"); builder.add(arguments).add(effective); }
@Override public void initializeUI(UIBuilder builder) throws Exception { InputComponentFactory factory = builder.getInputComponentFactory(); arguments = factory.createInputMany("arguments", 'd', Dependency.class).setLabel("Coordinates").setRequired(true) .setDescription( "The coordinates of the arguments to be checked [groupId :artifactId {:version :scope :packaging}]"); effective = factory.createInput("effective", 'e', Boolean.class).setLabel("Effective"); builder.add(arguments).add(effective); }
@Override public void initializeUI(UIBuilder builder) throws Exception { InputComponentFactory factory = builder.getInputComponentFactory(); projectRoot = factory.createInput("projectRoot", DirectoryResource.class).setLabel("Project directory") .setDescription("The location of the project (contains pom.xml)").setRequired(true); Project project = getSelectedProject(builder); if (project != null) { projectRoot.setDefaultValue(project.getRoot().reify(DirectoryResource.class)); } builder.add(projectRoot); }
@Override public void initializeUI(UIBuilder builder) throws Exception { InputComponentFactory factory = builder.getInputComponentFactory(); named = factory.createInput("named", String.class).setLabel("Repository Name").setRequired(true) .setDescription("The repository name"); url = factory.createInput("url", String.class).setLabel("Repository URL").setRequired(true) .setDescription("The repository URL"); builder.add(named).add(url); }
@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); }
@Override public void initializeUI(UIBuilder builder) throws Exception { InputComponentFactory factory = builder.getInputComponentFactory(); arguments = factory.createInputMany("arguments", String.class); notest = factory.createInput("notest", Boolean.class).setLabel("No Test"); quiet = factory.createInput("quiet", 'q', Boolean.class).setLabel("Quiet").setDescription("Quiet output"); profile = factory.createInputMany("profile", String.class); builder.add(arguments).add(profile).add(notest).add(quiet); }
@Override public void initializeUI(UIBuilder builder) throws Exception { InputComponentFactory factory = builder.getInputComponentFactory(); furnaceContainer = factory.createSelectOne("furnaceContainer", AddonId.class).setLabel("Furnace container") .setRequired(true).setRequiredMessage("You must select one Furnace container"); splitProjects = factory.createInput("splitProjects", Boolean.class) .setLabel("Create API, Impl, SPI, Tests, and Addon modules"); addons = factory.createSelectMany("addons", AddonId.class).setLabel("Depend on these addons"); configureAddonDependencies(); builder.add(furnaceContainer).add(splitProjects).add(addons); }
@Override public void initializeUI(UIBuilder builder) throws Exception { InputComponentFactory factory = builder.getInputComponentFactory(); url = factory.createInput("url", 'u', URLResource.class).setLabel("GIT Repository URL") .setDescription("The git repository location").setRequired(true); coordinate = factory.createInputMany("coordinate", 'c', String.class).setLabel("Coordinate") .setDescription("The coordinates of this addon if multiple addons are available"); ref = factory.createInput("ref", 'r', String.class).setLabel("Branch/Tag") .setDescription("The branch/tag (ref) to use if different from default"); builder.add(url).add(ref).add(coordinate); }
@Override public void initializeUI(UIBuilder builder) throws Exception { boolean gui = builder.getUIContext().getProvider().isGUI(); InputComponentFactory factory = builder.getInputComponentFactory(); this.addon = factory.createSelectOne("addon", AddonDescriptor.class) .setLabel("Addon") .setRequired(true) .setNote(() -> addon.hasValue() ? addon.getValue().getDescription() : null) .setValueChoices(AddonDescriptorCatalogRegistry.INSTANCE.find("")) .setItemLabelConverter(gui ? AddonDescriptor::getName : AddonDescriptor::getId); builder.add(addon); }