Skip to content

Commit 6ad0029

Browse files
committed
refactor(actions): rename AutoDevOpenSettingsAction to EditSettingsAction
Rename the file `AutoDevOpenSettingsAction.kt` to `EditSettingsAction.kt` in the `cc.unitmesh.devti.actions` package. Also modify the `META-INF/autodev-core.xml` file to update the action ID, class, text, and description for the `Open Settings` action to `Edit Settings`.
1 parent c274f4b commit 6ad0029

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/222/main/resources/META-INF/autodev-core.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,9 @@
301301

302302

303303
<action id="cc.unitmesh.devti.OpenSettings"
304-
class="cc.unitmesh.devti.actions.AutoDevOpenSettingsAction"
305-
text="Open Settings"
306-
description="Open AutoDev Settings"
304+
class="cc.unitmesh.devti.actions.EditSettingsAction"
305+
text="Edit Settings"
306+
description="Edit AutoDev Settings"
307307
icon="cc.unitmesh.devti.AutoDevIcons.AI_COPILOT">
308308
</action>
309309

src/233/main/resources/META-INF/autodev-core.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,16 +303,16 @@
303303
<add-to-group group-id="NewGroup" anchor="last"/>
304304
</group>
305305

306-
<action id="cc.unitmesh.devti.OpenSettings"
307-
class="cc.unitmesh.devti.actions.AutoDevOpenSettingsAction"
308-
text="Open Settings"
309-
description="Open AutoDev Settings"
306+
<action id="cc.unitmesh.devti.EditSettings"
307+
class="cc.unitmesh.devti.actions.EditSettingsAction"
308+
text="Edit Settings"
309+
description="Edit AutoDev Settings"
310310
icon="cc.unitmesh.devti.AutoDevIcons.AI_COPILOT">
311311
</action>
312312

313313
<group id="autodev.statusBarPopup">
314314
<reference id="cc.unitmesh.devti.QuickAssistant"/>
315-
<reference id="cc.unitmesh.devti.OpenSettings"/>
315+
<reference id="cc.unitmesh.devti.EditSettings"/>
316316
</group>
317317
</actions>
318318
</idea-plugin>

src/main/kotlin/cc/unitmesh/devti/actions/AutoDevOpenSettingsAction.kt renamed to src/main/kotlin/cc/unitmesh/devti/actions/EditSettingsAction.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import com.intellij.openapi.actionSystem.AnAction
66
import com.intellij.openapi.actionSystem.AnActionEvent
77
import com.intellij.openapi.options.ShowSettingsUtil
88

9-
class AutoDevOpenSettingsAction : AnAction() {
9+
class EditSettingsAction : AnAction() {
1010
override fun actionPerformed(event: AnActionEvent) {
1111
val project = event.project ?: return
1212
ShowSettingsUtil.getInstance().showSettingsDialog(project, AutoDevSettingsConfigurable::class.java)

0 commit comments

Comments
 (0)