in src/main/kotlin/org/jetbrains/tinygoplugin/runconfig/TinyGoRunConfigurationEditor.kt [89:111]
override fun createEditor(): JComponent {
return panel {
row(TinyGoBundle.message(TARGET_LABEL)) {
targetPlatformFieldWithLink(properties, runConfiguration, this@TinyGoRunConfigurationEditor)
}
row(TinyGoBundle.message(CLI_ARGUMENTS_LABEL)) {
textField()
.align(Align.FILL)
.bindText(properties.cmdLineArguments)
.columns(COLUMNS_MEDIUM)
}
row(TinyGoBundle.message(PATH_TO_SRC_LABEL, pathKind)) {
val fileChooserDescriptor = FileChooserDescriptor(true, true, false, false, false, false)
textFieldWithBrowseButton(fileChooserDescriptor = fileChooserDescriptor)
.align(Align.FILL)
.bindText(properties.mainFile)
}
row(TinyGoBundle.message(ENVIRONMENT_LABEL)) {
cell(environmentEditor).align(Align.FILL)
}
createAdditionalComponent()
}
}