@Override public UIInputMany<VALUETYPE> setDescription(String description) { getDelegate().setDescription(description); return this; }
@Override public UIInputMany<VALUETYPE> setDescription(Callable<String> description) { getDelegate().setDescription(description); return this; }
@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(); 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(); 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(); 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 { InputComponentFactory inputFactory = builder.getInputComponentFactory(); sources = inputFactory.createInputMany("sources", 's', FileResource.class); sources.setDescription("The folder or file where the java sources will be formatted"); profilepath = inputFactory.createInput("profilepath", 'p', XMLResource.class); profilepath.setDescription("The eclipse code format profile"); profilename = inputFactory.createInput("profilename", 'n', String.class); profilename.setDescription("The eclipse code format profile name"); Furnace furnace = SimpleContainer.getFurnace(this.getClass().getClassLoader()); Configuration userConfig = furnace.getAddonRegistry().getServices(Configuration.class).get(); ResourceFactory resourceFactory = furnace.getAddonRegistry().getServices(ResourceFactory.class).get(); String profileName = userConfig.getString(JavaResource.FORMATTER_PROFILE_NAME_KEY); if (!Strings.isNullOrEmpty(profileName)) { profilename.setDefaultValue(profileName); } String path = userConfig.getString(JavaResource.FORMATTER_PROFILE_PATH_KEY); if (!Strings.isNullOrEmpty(path)) { XMLResource resource = resourceFactory.create(XMLResource.class, new File(path)); profilepath.setDefaultValue(resource); } builder.add(sources).add(profilepath).add(profilename); }