@@ -2,7 +2,7 @@ package cc.unitmesh.devti.settings.coder
2
2
3
3
import cc.unitmesh.devti.AutoDevBundle
4
4
import cc.unitmesh.devti.fullWidthCell
5
- import cc.unitmesh.devti.settings.locale.LanguageChangedCallback.jLabel
5
+ import cc.unitmesh.devti.settings.locale.LanguageChangedCallback.i18nLabel
6
6
import cc.unitmesh.devti.settings.locale.LanguageChangedCallback.tips
7
7
import com.intellij.openapi.components.service
8
8
import com.intellij.openapi.options.BoundConfigurable
@@ -13,7 +13,6 @@ import com.intellij.ui.dsl.builder.panel
13
13
import com.intellij.ui.dsl.builder.toMutableProperty
14
14
import org.jetbrains.builtInWebServer.BuiltInServerOptions
15
15
import java.net.InetAddress
16
- import java.net.NetworkInterface
17
16
import javax.swing.JCheckBox
18
17
import javax.swing.JTextField
19
18
@@ -39,7 +38,7 @@ class AutoDevCoderConfigurable(private val project: Project) : BoundConfigurable
39
38
val state = settings.state.copy()
40
39
41
40
override fun createPanel (): DialogPanel = panel {
42
- row(jLabel (" settings.autodev.coder.recordingInLocal" )) {
41
+ row(i18nLabel (" settings.autodev.coder.recordingInLocal" )) {
43
42
fullWidthCell(recordingInLocalCheckBox)
44
43
.bind(
45
44
componentGet = { it.isSelected },
@@ -48,7 +47,7 @@ class AutoDevCoderConfigurable(private val project: Project) : BoundConfigurable
48
47
)
49
48
}
50
49
51
- row(jLabel (" settings.autodev.coder.disableAdvanceContext" )) {
50
+ row(i18nLabel (" settings.autodev.coder.disableAdvanceContext" )) {
52
51
fullWidthCell(disableAdvanceContextCheckBox)
53
52
.bind(
54
53
componentGet = { it.isSelected },
@@ -57,7 +56,7 @@ class AutoDevCoderConfigurable(private val project: Project) : BoundConfigurable
57
56
)
58
57
}
59
58
60
- row(jLabel (" settings.autodev.coder.noChatHistory" )) {
59
+ row(i18nLabel (" settings.autodev.coder.noChatHistory" )) {
61
60
fullWidthCell(noChatHistoryCheckBox)
62
61
.bind(
63
62
componentGet = { it.isSelected },
@@ -66,7 +65,7 @@ class AutoDevCoderConfigurable(private val project: Project) : BoundConfigurable
66
65
)
67
66
}
68
67
69
- row(jLabel (" settings.autodev.coder.enableExportAsMcpServer" )) {
68
+ row(i18nLabel (" settings.autodev.coder.enableExportAsMcpServer" )) {
70
69
fullWidthCell(enableMcpServerCheckBox)
71
70
.bind(
72
71
componentGet = { it.isSelected },
@@ -84,7 +83,7 @@ class AutoDevCoderConfigurable(private val project: Project) : BoundConfigurable
84
83
cell(portLabel)
85
84
}
86
85
87
- row(jLabel (" settings.autodev.coder.enableObserver" )) {
86
+ row(i18nLabel (" settings.autodev.coder.enableObserver" )) {
88
87
fullWidthCell(enableObserver)
89
88
.bind(
90
89
componentGet = { it.isSelected },
@@ -93,7 +92,7 @@ class AutoDevCoderConfigurable(private val project: Project) : BoundConfigurable
93
92
)
94
93
}
95
94
96
- row(jLabel (" settings.autodev.coder.trimCodeBeforeSend" )) {
95
+ row(i18nLabel (" settings.autodev.coder.trimCodeBeforeSend" )) {
97
96
fullWidthCell(trimCodeBeforeSend)
98
97
.bind(
99
98
componentGet = { it.isSelected },
@@ -102,7 +101,7 @@ class AutoDevCoderConfigurable(private val project: Project) : BoundConfigurable
102
101
)
103
102
}
104
103
105
- row(jLabel (" settings.autodev.coder.inEditorCompletion" )) {
104
+ row(i18nLabel (" settings.autodev.coder.inEditorCompletion" )) {
106
105
fullWidthCell(inEditorCompletionCheckBox)
107
106
.bind(
108
107
componentGet = { it.isSelected },
@@ -111,7 +110,7 @@ class AutoDevCoderConfigurable(private val project: Project) : BoundConfigurable
111
110
)
112
111
}
113
112
114
- row(jLabel (" settings.autodev.coder.enableRenameSuggestion" )) {
113
+ row(i18nLabel (" settings.autodev.coder.enableRenameSuggestion" )) {
115
114
fullWidthCell(JCheckBox ())
116
115
.bind(
117
116
componentGet = { it.isSelected },
@@ -120,7 +119,7 @@ class AutoDevCoderConfigurable(private val project: Project) : BoundConfigurable
120
119
)
121
120
}
122
121
123
- row(jLabel (" settings.autodev.coder.enableAutoRepairDiff" )) {
122
+ row(i18nLabel (" settings.autodev.coder.enableAutoRepairDiff" )) {
124
123
fullWidthCell(enableAutoRepairDiff)
125
124
.bind(
126
125
componentGet = { it.isSelected },
@@ -129,7 +128,7 @@ class AutoDevCoderConfigurable(private val project: Project) : BoundConfigurable
129
128
)
130
129
}
131
130
132
- row(jLabel (" settings.autodev.coder.enableAutoRunTerminal" )) {
131
+ row(i18nLabel (" settings.autodev.coder.enableAutoRunTerminal" )) {
133
132
fullWidthCell(enableAutoRunTerminal)
134
133
.bind(
135
134
componentGet = { it.isSelected },
@@ -138,7 +137,7 @@ class AutoDevCoderConfigurable(private val project: Project) : BoundConfigurable
138
137
)
139
138
}
140
139
141
- row(jLabel (" settings.autodev.coder.enableAutoLintCode" )) {
140
+ row(i18nLabel (" settings.autodev.coder.enableAutoLintCode" )) {
142
141
fullWidthCell(enableAutoLintCode)
143
142
.bind(
144
143
componentGet = { it.isSelected },
@@ -147,7 +146,7 @@ class AutoDevCoderConfigurable(private val project: Project) : BoundConfigurable
147
146
)
148
147
}
149
148
150
- row(jLabel (" settings.autodev.coder.enableRenderWebview" )) {
149
+ row(i18nLabel (" settings.autodev.coder.enableRenderWebview" )) {
151
150
fullWidthCell(enableRenderWebview)
152
151
.bind(
153
152
componentGet = { it.isSelected },
@@ -156,7 +155,7 @@ class AutoDevCoderConfigurable(private val project: Project) : BoundConfigurable
156
155
)
157
156
}
158
157
159
- row(jLabel (" settings.autodev.coder.enableAutoScrollInSketch" )) {
158
+ row(i18nLabel (" settings.autodev.coder.enableAutoScrollInSketch" )) {
160
159
fullWidthCell(enableAutoScrollInSketch)
161
160
.bind(
162
161
componentGet = { it.isSelected },
@@ -165,7 +164,7 @@ class AutoDevCoderConfigurable(private val project: Project) : BoundConfigurable
165
164
)
166
165
}
167
166
168
- row(jLabel (" settings.autodev.coder.enableDiffViewer" )) {
167
+ row(i18nLabel (" settings.autodev.coder.enableDiffViewer" )) {
169
168
fullWidthCell(JCheckBox ())
170
169
.bind(
171
170
componentGet = { it.isSelected },
@@ -174,7 +173,7 @@ class AutoDevCoderConfigurable(private val project: Project) : BoundConfigurable
174
173
)
175
174
}
176
175
177
- row(jLabel (" settings.external.team.prompts.path" )) {
176
+ row(i18nLabel (" settings.external.team.prompts.path" )) {
178
177
fullWidthCell(teamPromptsField)
179
178
.bind(
180
179
componentGet = { it.text },
0 commit comments