@@ -56,7 +56,6 @@ import com.jetbrains.gateway.ssh.IdeWithStatus
56
56
import com.jetbrains.gateway.ssh.IntelliJPlatformProduct
57
57
import com.jetbrains.gateway.ssh.deploy.DeployException
58
58
import com.jetbrains.gateway.ssh.util.validateRemotePath
59
- import com.jetbrains.rd.generator.nova.PredefinedType
60
59
import kotlinx.coroutines.CoroutineScope
61
60
import kotlinx.coroutines.Dispatchers
62
61
import kotlinx.coroutines.Job
@@ -83,11 +82,9 @@ import javax.swing.SwingConstants
83
82
import javax.swing.event.DocumentEvent
84
83
85
84
// Just extracting the way we display the IDE info into a helper function.
86
- private fun displayIdeWithStatus (ideWithStatus : IdeWithStatus ): String {
87
- return " ${ideWithStatus.product.productCode} ${ideWithStatus.presentableVersion} ${ideWithStatus.buildNumber} | ${ideWithStatus.status.name.lowercase(
88
- Locale .getDefault(),
89
- )} "
90
- }
85
+ private fun displayIdeWithStatus (ideWithStatus : IdeWithStatus ): String = " ${ideWithStatus.product.productCode} ${ideWithStatus.presentableVersion} ${ideWithStatus.buildNumber} | ${ideWithStatus.status.name.lowercase(
86
+ Locale .getDefault(),
87
+ )} "
91
88
92
89
/* *
93
90
* View for a single workspace. In particular, show available IDEs and a button
@@ -483,9 +480,10 @@ class CoderWorkspaceProjectIDEStepView(
483
480
layout = FlowLayout (FlowLayout .LEFT )
484
481
add(JLabel (ideWithStatus.product.ideName, ideWithStatus.product.icon, SwingConstants .LEFT ))
485
482
add(
486
- JLabel (displayIdeWithStatus(
487
- ideWithStatus
488
- ),
483
+ JLabel (
484
+ displayIdeWithStatus(
485
+ ideWithStatus,
486
+ ),
489
487
).apply {
490
488
foreground = UIUtil .getLabelDisabledForeground()
491
489
},
0 commit comments