This repository was archived by the owner on May 8, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
src/main/kotlin/com/stackspot/intellij/ui/toolwindow Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,6 @@ import javax.swing.tree.DefaultTreeCellRenderer
3636
3737private const val COULD_NOT_APPLY_PLUGIN = " Could not apply plugin"
3838private const val PLUGIN_HAS_DEPENDENCY = " This plugin has dependencies. First, apply these before proceeding:"
39-
4039class StackSpotCellRenderer (val tree : AbstractStackSpotTree ) : DefaultTreeCellRenderer() {
4140
4241 private val panel = object : JPanel () {
@@ -232,12 +231,18 @@ class StackSpotCellRenderer(val tree: AbstractStackSpotTree) : DefaultTreeCellRe
232231 val args = mutableListOf<String >()
233232 varsMap.forEach { (key, value) ->
234233 if (value is Set <* >) {
235- value.forEach { elem -> args.add(" --$key $elem " ) }
234+ args.add(" --$key ${extractSet(value)} " )
236235 } else {
237- args.add(" --$key $value " )
236+ args.add(" --$key \" $value \" " )
238237 }
239238 }
240239
241240 return args.toTypedArray()
242241 }
243- }
242+
243+ private fun extractSet (set : Set <* >) : String {
244+ val str = " $set " .replace(" [" , " " ).replace(" ]" , " " )
245+ return " \" $str \" "
246+ }
247+ }
248+
You can’t perform that action at this time.
0 commit comments