|
4 | 4 | import com.devoxx.genie.service.mcp.MCPService; |
5 | 5 | import com.devoxx.genie.ui.settings.AbstractSettingsComponent; |
6 | 6 | import com.devoxx.genie.ui.settings.DevoxxGenieStateService; |
7 | | -import com.devoxx.genie.ui.settings.mcp.dialog.MCPEnvironmentVariablesDialog; |
8 | 7 | import com.devoxx.genie.ui.settings.mcp.dialog.MCPServerDialog; |
9 | | -import com.devoxx.genie.ui.util.NotificationUtil; |
10 | 8 | import com.intellij.icons.AllIcons; |
11 | | -import com.intellij.openapi.actionSystem.AnActionEvent; |
12 | | -import com.intellij.openapi.project.Project; |
13 | | -import com.intellij.openapi.project.ProjectManager; |
14 | 9 | import com.intellij.openapi.ui.DialogWrapper; |
15 | 10 | import com.intellij.openapi.ui.Messages; |
16 | | -import com.intellij.ui.AnActionButton; |
17 | 11 | import com.intellij.ui.ToolbarDecorator; |
18 | 12 | import com.intellij.ui.components.JBScrollPane; |
19 | 13 | import com.intellij.ui.table.JBTable; |
@@ -179,20 +173,6 @@ private void removeMcpServer() { |
179 | 173 | } |
180 | 174 | } |
181 | 175 |
|
182 | | - private void editEnvironmentVariables() { |
183 | | - int selectedRow = mcpTable.getSelectedRow(); |
184 | | - if (selectedRow >= 0) { |
185 | | - MCPServer selectedServer = tableModel.getMcpServerAt(selectedRow); |
186 | | - MCPEnvironmentVariablesDialog dialog = new MCPEnvironmentVariablesDialog(selectedServer); |
187 | | - |
188 | | - if (dialog.showAndGet()) { |
189 | | - selectedServer.setEnv(dialog.getEnvironmentVariables()); |
190 | | - tableModel.fireTableRowsUpdated(selectedRow, selectedRow); |
191 | | - isModified = true; |
192 | | - } |
193 | | - } |
194 | | - } |
195 | | - |
196 | 176 | /** |
197 | 177 | * Apply the settings from the UI to the DevoxxGenieStateService |
198 | 178 | */ |
|
0 commit comments