Skip to content

Commit 202ead6

Browse files
committed
refactor(mcp): rename McpToolDetailPanel to McpToolListCardPanel #371
Rename class to better reflect its purpose as a card component in the tool list view, improving code clarity and consistency with naming conventions.
1 parent c212186 commit 202ead6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/src/main/kotlin/cc/unitmesh/devti/mcp/ui/McpToolDetailPanel.kt renamed to core/src/main/kotlin/cc/unitmesh/devti/mcp/ui/McpToolListCardPanel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import javax.swing.JPanel
1515
import javax.swing.JTextPane
1616
import javax.swing.border.CompoundBorder
1717

18-
class McpToolDetailPanel(
18+
class McpToolListCardPanel(
1919
private val project: Project,
2020
private val serverName: String,
2121
private val tool: Tool

core/src/main/kotlin/cc/unitmesh/devti/mcp/ui/McpToolListPanel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class McpToolListPanel(private val project: Project) : JPanel() {
142142
toolsPanel.add(noToolsLabel)
143143
} else {
144144
tools.forEach { tool ->
145-
val panel = McpToolDetailPanel(project, serverName, tool)
145+
val panel = McpToolListCardPanel(project, serverName, tool)
146146
toolsPanel.add(panel)
147147
}
148148
}

0 commit comments

Comments
 (0)