async function updateConfigValues()

in src/launchWizard/launchWizard.js [282:352]


async function updateConfigValues(config) {
  document.getElementById('name').value = config.name
  document.getElementById('data').value = config.data
  document.getElementById('debugServer').value = parseInt(config.debugServer)
  document.getElementById('infosetFormat').value = config.infosetFormat
    ? config.infosetFormat
    : 'xml'
  document.getElementById('infosetOutputFilePath').value = config.infosetOutput[
    'path'
  ]
    ? config.infosetOutput['path']
    : config.infosetOutputFilePath
  document.getElementById('infosetOutputType').value = config.infosetOutput[
    'type'
  ]
    ? config.infosetOutput['type']
    : config.infosetOutputType
  document.getElementById('tdmlAction').value =
    config['tdmlConfig'] && config.tdmlConfig['action']
      ? config.tdmlConfig['action']
      : config.tdmlAction
  document.getElementById('tdmlName').value =
    config['tdmlConfig'] && config.tdmlConfig['name']
      ? config.tdmlConfig['name']
      : config.tdmlName
  document.getElementById('tdmlDescription').value =
    config['tdmlConfig'] && config.tdmlConfig['description']
      ? config.tdmlConfig['description']
      : config.tdmlDescription
  document.getElementById('tdmlPath').value =
    config['tdmlConfig'] && config.tdmlConfig['path']
      ? config.tdmlConfig['path']
      : config.tdmlPath
  document.getElementById('openHexView').checked = config.openHexView
  document.getElementById('openInfosetDiffView').checked =
    config.openInfosetDiffView
  document.getElementById('openInfosetView').checked = config.openInfosetView
  document.getElementById('program').value = config.program
  document.getElementById('stopOnEntry').checked = config.stopOnEntry
  document.getElementById('trace').checked = config.trace
  document.getElementById('useExistingServer').checked =
    config.useExistingServer
  document.getElementById('dataEditorPort').value = parseInt(
    config.dataEditor.port
  )
  document.getElementById('dataEditorLogFile').value =
    config.dataEditor.logging.file
  document.getElementById('dataEditorLogLevel').value =
    config.dataEditor.logging.level

  document.getElementById('dfdlDebuggerLogFile').value =
    config.dfdlDebugger.file
  document.getElementById('dfdlDebuggerLogLevel').value =
    config.dfdlDebugger.level

  updateInfosetOutputType()
  updateTDMLAction()

  /*
   * Remove all items from the daffodil debug classpath list/table.
   * This ensures that the list/table will only have the items for that
   * config. Also, ensures that the daffodil debug classpath list/table
   * is empty for a new config.
   */
  await clearDaffodilDebugClasspathList()
  if (config.daffodilDebugClasspath !== '') {
    await updateDaffodilDebugClasspathList(config.daffodilDebugClasspath, ':')
  }

  updateInfosetOutputType()
}