@@ -8,6 +8,7 @@ import com.coder.gateway.views.LazyBrowserLink
8
8
import com.intellij.ide.IdeBundle
9
9
import com.intellij.openapi.Disposable
10
10
import com.intellij.openapi.application.ApplicationManager
11
+ import com.intellij.openapi.diagnostic.Logger
11
12
import com.intellij.openapi.ui.ComboBox
12
13
import com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreenUIManager
13
14
import com.intellij.remote.AuthType
@@ -34,7 +35,6 @@ import kotlinx.coroutines.launch
34
35
import kotlinx.coroutines.withContext
35
36
import java.awt.Component
36
37
import java.awt.FlowLayout
37
- import java.util.logging.Logger
38
38
import javax.swing.ComboBoxModel
39
39
import javax.swing.DefaultComboBoxModel
40
40
import javax.swing.JLabel
@@ -102,7 +102,7 @@ class CoderLocateRemoteProjectStepView : CoderWorkspacesWizardStep, Disposable {
102
102
wizard = wizardModel
103
103
val selectedWorkspace = wizardModel.selectedWorkspace
104
104
if (selectedWorkspace == null ) {
105
- logger.warning (" No workspace was selected. Please go back to the previous step and select a Coder Workspace" )
105
+ logger.warn (" No workspace was selected. Please go back to the previous step and select a Coder Workspace" )
106
106
return
107
107
}
108
108
@@ -125,7 +125,7 @@ class CoderLocateRemoteProjectStepView : CoderWorkspacesWizardStep, Disposable {
125
125
.map { ide -> IdeWithStatus (ide.product, ide.buildNumber, IdeStatus .DOWNLOAD , ide.downloadLink, ide.presentableVersion) }
126
126
127
127
if (idesWithStatus.isNullOrEmpty()) {
128
- logger.warning (" Could not resolve any IDE for workspace ${selectedWorkspace.name} , probably $workspaceOS is not supported by Gateway" )
128
+ logger.warn (" Could not resolve any IDE for workspace ${selectedWorkspace.name} , probably $workspaceOS is not supported by Gateway" )
129
129
} else {
130
130
cbIDE.remove(spinner)
131
131
ideComboBoxModel.addAll(idesWithStatus)
@@ -157,7 +157,7 @@ class CoderLocateRemoteProjectStepView : CoderWorkspacesWizardStep, Disposable {
157
157
}
158
158
159
159
companion object {
160
- val logger = Logger .getLogger (CoderLocateRemoteProjectStepView ::class .java.simpleName)
160
+ val logger = Logger .getInstance (CoderLocateRemoteProjectStepView ::class .java.simpleName)
161
161
}
162
162
163
163
private class IDEComboBox (model : ComboBoxModel <IdeWithStatus >) : ComboBox<IdeWithStatus>(model) {
0 commit comments