@@ -57,7 +57,6 @@ import java.awt.Component
57
57
import java.awt.Dimension
58
58
import java.util.Locale
59
59
import javax.swing.JComponent
60
- import javax.swing.JLabel
61
60
import javax.swing.event.DocumentEvent
62
61
63
62
/* *
@@ -101,38 +100,30 @@ class CoderGatewayRecentWorkspaceConnectionsView(private val setContentCallback:
101
100
label(CoderGatewayBundle .message(" gateway.connector.recent-connections.title" )).applyToComponent {
102
101
font = JBFont .h3().asBold()
103
102
}
104
- panel {
105
- indent {
106
- row {
107
- cell(JLabel ()).resizableColumn().align(AlignX .FILL )
108
- searchBar =
109
- cell(SearchTextField (false )).resizableColumn().align(AlignX .FILL ).applyToComponent {
110
- minimumSize = Dimension (350 , - 1 )
111
- textEditor.border = JBUI .Borders .empty(2 , 5 , 2 , 0 )
112
- addDocumentListener(
113
- object : DocumentAdapter () {
114
- override fun textChanged (e : DocumentEvent ) {
115
- filterString = this @applyToComponent.text.trim()
116
- updateContentView()
117
- }
118
- },
119
- )
120
- }.component
121
-
122
- actionButton(
123
- object : DumbAwareAction (
124
- CoderGatewayBundle .message(" gateway.connector.recent-connections.new.wizard.button.tooltip" ),
125
- null ,
126
- AllIcons .General .Add ,
127
- ) {
128
- override fun actionPerformed (e : AnActionEvent ) {
129
- setContentCallback(CoderGatewayConnectorWizardWrapperView ().component)
130
- }
131
- },
132
- ).gap(RightGap .SMALL )
103
+ searchBar =
104
+ cell(SearchTextField (false )).resizableColumn().align(AlignX .FILL ).applyToComponent {
105
+ minimumSize = Dimension (350 , - 1 )
106
+ textEditor.border = JBUI .Borders .empty(2 , 5 , 2 , 0 )
107
+ addDocumentListener(
108
+ object : DocumentAdapter () {
109
+ override fun textChanged (e : DocumentEvent ) {
110
+ filterString = this @applyToComponent.text.trim()
111
+ updateContentView()
112
+ }
113
+ },
114
+ )
115
+ }.component
116
+ actionButton(
117
+ object : DumbAwareAction (
118
+ CoderGatewayBundle .message(" gateway.connector.recent-connections.new.wizard.button.tooltip" ),
119
+ null ,
120
+ AllIcons .General .Add ,
121
+ ) {
122
+ override fun actionPerformed (e : AnActionEvent ) {
123
+ setContentCallback(CoderGatewayConnectorWizardWrapperView ().component)
133
124
}
134
- }
135
- }
125
+ },
126
+ ).gap( RightGap . SMALL )
136
127
}.bottomGap(BottomGap .SMALL )
137
128
separator(background = WelcomeScreenUIManager .getSeparatorColor())
138
129
row {
0 commit comments