question: private void updateFieldOptions ( ) { String currentText = fieldBox . getText ( ) ; List < String > fields = influxService . getFields ( measurementBox . getText ( ) ) ; if ( null != fields ) { fieldBox . setItems ( fields . toArray ( new String [ fields . size ( ) ] ) ) ; } fieldBox . setText ( currentText ) ; }
target:  Updates the selection options of the Field drop-down box.