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);
}

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 ) ; }
updates the selection options of the field drop - down box .
