series0ne/corda-demobench-cordapp-select (#3543)

Adds the ability to multi-select CorDapp JARs for node profiles.
This commit is contained in:
Matthew Layton 2018-07-23 12:34:07 +01:00 committed by Joel Dudley
parent 2de789877a
commit 6a895401c5

View File

@ -145,9 +145,11 @@ class NodeTabView : Fragment() {
hbox {
button("Add CorDapp") {
setOnAction {
val app = (chooser.showOpenDialog(null) ?: return@setOnAction).toPath()
if (!cordapps.contains(app)) {
cordapps.add(app)
(chooser.showOpenMultipleDialog(null) ?: return@setOnAction).forEach {
val app = it.toPath()
if (!cordapps.contains(app)) {
cordapps.add(app)
}
}
}