Skip to content

Commit 773a115

Browse files
authored
Migrate from UI DSL v1 to v2 -8 (#3849)
* switched to dsl v2 * feedback addressed
1 parent e311e38 commit 773a115

File tree

1 file changed

+5
-2
lines changed
  • jetbrains-core/src/software/aws/toolkits/jetbrains/services/dynamodb/editor

1 file changed

+5
-2
lines changed

jetbrains-core/src/software/aws/toolkits/jetbrains/services/dynamodb/editor/SearchPanel.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ package software.aws.toolkits.jetbrains.services.dynamodb.editor
55

66
import com.intellij.openapi.ui.DialogPanel
77
import com.intellij.ui.HideableDecorator
8-
import com.intellij.ui.layout.panel
8+
import com.intellij.ui.dsl.builder.AlignX
9+
import com.intellij.ui.dsl.builder.bindItem
10+
import com.intellij.ui.dsl.builder.panel
11+
import com.intellij.ui.dsl.builder.toNullableProperty
912
import com.intellij.util.ui.JBUI
1013
import com.intellij.util.ui.UIUtil
1114
import software.aws.toolkits.jetbrains.services.dynamodb.Index
@@ -25,7 +28,7 @@ class SearchPanel(private val tableInfo: TableInfo, initialSearchType: SearchTyp
2528
private val queryScanPanel: DialogPanel = panel {
2629
row {
2730
label(message("dynamodb.viewer.search.index.label"))
28-
comboBox(searchIndexModel, ::searchIndex, IndexRenderer(searchIndexModel)).constraints(growX, pushX)
31+
comboBox(searchIndexModel, IndexRenderer(searchIndexModel)).bindItem(::searchIndex.toNullableProperty()).align(AlignX.FILL)
2932
}
3033

3134
row {

0 commit comments

Comments
 (0)