Skip to content

Commit 6cfa06e

Browse files
committed
feature: Add checkboxes for method info and path options in CallGraphUIComponents
1 parent b1ff0e6 commit 6cfa06e

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/main/kotlin/org/skgroup/securityinspector/ui/component/CallGraphUIComponents.kt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@ class CallGraphUIComponents(val project: Project) {
4646
val sinkField = JBTextField(15)
4747
val searchButton = JButton("Search")
4848

49+
val containInfo = JBCheckBox("Info").apply {
50+
addActionListener {
51+
val enabled = isSelected
52+
System.setProperty("BUILD_WITH_METHOD_INFO", enabled.toString())
53+
}
54+
}
55+
56+
val containPath = JBCheckBox("Path").apply {
57+
addActionListener {
58+
val enabled = isSelected
59+
System.setProperty("BUILD_WITH_PATH", enabled.toString())
60+
}
61+
}
62+
4963
val systemPlatformLabel =
5064
JBLabel("System Plat: ${System.getProperty("os.name")}", LEFT).apply {
5165
border = JBUI.Borders.empty(5)

0 commit comments

Comments
 (0)