@@ -71,7 +71,7 @@ import javax.swing.ListCellRenderer
71
71
import javax.swing.SwingConstants
72
72
import javax.swing.event.DocumentEvent
73
73
74
- class CoderLocateRemoteProjectStepView (private val enableNextButton : (Boolean ) -> Unit ) : CoderWorkspacesWizardStep, Disposable {
74
+ class CoderLocateRemoteProjectStepView (private val setNextButtonEnabled : (Boolean ) -> Unit ) : CoderWorkspacesWizardStep, Disposable {
75
75
private val cs = CoroutineScope (Dispatchers .Main )
76
76
private val coderClient: CoderRestClientService = ApplicationManager .getApplication().getService(CoderRestClientService ::class .java)
77
77
@@ -98,7 +98,7 @@ class CoderLocateRemoteProjectStepView(private val enableNextButton: (Boolean) -
98
98
cbIDE = cell(IDEComboBox (ideComboBoxModel).apply {
99
99
renderer = IDECellRenderer ()
100
100
addActionListener {
101
- enableNextButton (this .selectedItem != null )
101
+ setNextButtonEnabled (this .selectedItem != null )
102
102
ApplicationManager .getApplication().invokeLater {
103
103
logger.info(" Selected IDE: ${this .selectedItem} " )
104
104
when (this .selectedItem?.status) {
@@ -178,7 +178,7 @@ class CoderLocateRemoteProjectStepView(private val enableNextButton: (Boolean) -
178
178
is SshException -> {
179
179
logger.error(" Can't connect to workspace ${selectedWorkspace.name} . Reason: $e " )
180
180
withContext(Dispatchers .Main ) {
181
- enableNextButton (false )
181
+ setNextButtonEnabled (false )
182
182
cbIDE.renderer = object : ColoredListCellRenderer <IdeWithStatus >() {
183
183
override fun customizeCellRenderer (list : JList <out IdeWithStatus >, value : IdeWithStatus ? , index : Int , isSelected : Boolean , cellHasFocus : Boolean ) {
184
184
background = UIUtil .getListBackground(isSelected, cellHasFocus)
@@ -192,7 +192,7 @@ class CoderLocateRemoteProjectStepView(private val enableNextButton: (Boolean) -
192
192
else -> {
193
193
logger.error(" Could not resolve any IDE for workspace ${selectedWorkspace.name} . Reason: $e " )
194
194
withContext(Dispatchers .Main ) {
195
- enableNextButton (false )
195
+ setNextButtonEnabled (false )
196
196
cbIDE.renderer = object : ColoredListCellRenderer <IdeWithStatus >() {
197
197
override fun customizeCellRenderer (list : JList <out IdeWithStatus >, value : IdeWithStatus ? , index : Int , isSelected : Boolean , cellHasFocus : Boolean ) {
198
198
background = UIUtil .getListBackground(isSelected, cellHasFocus)
0 commit comments