src/main/java/org/jenkinsci/plugins/awsdevicefarm/AWSDeviceFarmRecorder.java
@SuppressWarnings("unused")
        public ListBoxModel doFillProjectNameItems(@QueryParameter String currentProjectName) {
            // Create ListBoxModel from all projects for this AWS Device Farm account.
            List<ListBoxModel.Option> entries = new ArrayList<ListBoxModel.Option>();
            System.out.print("getting projects");
            List<String> projectNames = getAWSDeviceFarmProjects();
            System.out.print(String.format("project length = %d", projectNames.size()));
            for (String projectName : projectNames) {
                // We don't ignore case because these *should* be unique.
                entries.add(new ListBoxModel.Option(projectName, projectName, projectName.equals(currentProjectName)));
            }
            return new ListBoxModel(entries);
        }
/**
         * Populate the project drop-down from the AWS Device Farm API or local cache.
         *
         * @return The ListBoxModel for the UI.
         */
Populate the project drop-down from the AWS Device Farm API or local cache.
@return The ListBoxModel for the UI.
Populate the project drop - down from the AWS Device Farm API or local cache . @return The ListBoxModel for the UI .
@SuppressWarnings("unused")
        public ListBoxModel doFillProjectNameItems(@QueryParameter String currentProjectName) {
            List<ListBoxModel.Option> entries = new ArrayList<ListBoxModel.Option>();
            System.out.print("getting projects");
            List<String> projectNames = getAWSDeviceFarmProjects();
            System.out.print(String.format("project length = %d", projectNames.size()));
            for (String projectName : projectNames) {
                entries.add(new ListBoxModel.Option(projectName, projectName, projectName.equals(currentProjectName)));
            }
            return new ListBoxModel(entries);
        }
@ SuppressWarnings ( "unused" ) public ListBoxModel doFillProjectNameItems ( @ QueryParameter String currentProjectName ) { List < ListBoxModel . Option > entries = new ArrayList < ListBoxModel . Option > ( ) ; System . out . print ( "getting projects" ) ; List < String > projectNames = getAWSDeviceFarmProjects ( ) ; System . out . print ( String . format ( "project length = %d" , projectNames . size ( ) ) ) ; for ( String projectName : projectNames ) { entries . add ( new ListBoxModel . Option ( projectName , projectName , projectName . equals ( currentProjectName ) ) ) ; } return new ListBoxModel ( entries ) ; }
Populate the project drop-down from the AWS Device Farm API or local cache.
Populate the project drop - down from the AWS Device Farm API or local cache .
// Create ListBoxModel from all projects for this AWS Device Farm account. // We don't ignore case because these *should* be unique.