in src/main/kotlin/com/jetbrains/plugin/jtreg/ui/ClasspathModifier.kt [102:116]
override fun actionPerformed(e: AnActionEvent) {
val project = configuration.project
val descriptor = FileChooserDescriptor(true, true, true, false, true, false)
val files =
FileChooser.chooseFiles(descriptor, this@ClasspathComponent, project, project.getBaseDir())
myModel.addRows(
ContainerUtil.map(
files,
Function { file: VirtualFile? ->
ClasspathModification(
PathUtil.getLocalPath(file!!.getPath()), false
)
})
)
}