Using selected() method when possible

GitOrigin-RevId: 337ce4959abc631cef05aa95661b0bd92be35f5b
This commit is contained in:
Pavel Porvatov
2023-04-05 15:33:09 +02:00
committed by intellij-monorepo-bot
parent 5043e6f910
commit b89bd59e4a
25 changed files with 95 additions and 108 deletions

View File

@@ -44,7 +44,7 @@ class PyPluginCommonOptionsPanel {
buttonsGroup {
row(PyBundle.message("runcfg.labels.python.interpreter")) {
useModuleSdkRadioButton = radioButton(PyBundle.message("runcfg.labels.use.sdk.of.module"))
.applyToComponent { isSelected = true }
.selected(true)
.gap(RightGap.SMALL)
.component
@@ -84,12 +84,12 @@ class PyPluginCommonOptionsPanel {
}
row {
addContentRootsCheckbox = checkBox(PyBundle.message("runcfg.labels.add.content.roots.to.pythonpath"))
.applyToComponent { isSelected = true }
.selected(true)
.component
}
row {
addSourceRootsCheckbox = checkBox(PyBundle.message("runcfg.labels.add.source.roots.to.pythonpath"))
.applyToComponent { isSelected = true }
.selected(true)
.component
}
}.apply {