@@ -57,7 +57,6 @@ import java.awt.Component
5757import java.awt.Dimension
5858import java.util.Locale
5959import javax.swing.JComponent
60- import javax.swing.JLabel
6160import javax.swing.event.DocumentEvent
6261
6362/* *
@@ -101,38 +100,30 @@ class CoderGatewayRecentWorkspaceConnectionsView(private val setContentCallback:
101100 label(CoderGatewayBundle .message(" gateway.connector.recent-connections.title" )).applyToComponent {
102101 font = JBFont .h3().asBold()
103102 }
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)
133124 }
134- }
135- }
125+ },
126+ ).gap( RightGap . SMALL )
136127 }.bottomGap(BottomGap .SMALL )
137128 separator(background = WelcomeScreenUIManager .getSeparatorColor())
138129 row {
0 commit comments