public void updateTagKeyOptions(){
  String currentText=keyBox.getText();
  List<String> tagKeys=influxService.getTags(measurementBox.getText());
  if (null != tagKeys) {
    keyBox.setItems(tagKeys.toArray(new String[tagKeys.size()]));
  }
  keyBox.setText(currentText);
}

public void updateTagKeyOptions ( ) { String currentText = keyBox . getText ( ) ; List < String > tagKeys = influxService . getTags ( measurementBox . getText ( ) ) ; if ( null != tagKeys ) { keyBox . setItems ( tagKeys . toArray ( new String [ tagKeys . size ( ) ] ) ) ; } keyBox . setText ( currentText ) ; }
updates the selection options for the key drop - down box depending on the selection in the measurement box .
