From a3dac6a33f88e40004c371f57cad010a309fa72c Mon Sep 17 00:00:00 2001 From: Pavel Bodiachevskii Date: Fri, 4 Aug 2023 00:26:57 +0400 Subject: [PATCH] feat: new action names - action id: asyncapi.createSchema -> asyncapi.createSpecification - rename CreateAsyncAPISchema -> CreateAsyncAPISpecification - replace AsyncAPI Schema -> AsyncAPI Specification - replace Create a AsyncAPI schema -> Create AsyncAPI specification - replace AsyncAPI schema (yaml) -> AsyncAPI 2 (.yaml) - replace AsyncAPI schema (json) -> AsyncAPI 3 (.json) --- ...syncAPISchema.kt => CreateAsyncAPISpecification.kt} | 10 +++++----- src/main/resources/META-INF/plugin.xml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) rename src/main/kotlin/com/asyncapi/plugin/idea/actions/{CreateAsyncAPISchema.kt => CreateAsyncAPISpecification.kt} (68%) diff --git a/src/main/kotlin/com/asyncapi/plugin/idea/actions/CreateAsyncAPISchema.kt b/src/main/kotlin/com/asyncapi/plugin/idea/actions/CreateAsyncAPISpecification.kt similarity index 68% rename from src/main/kotlin/com/asyncapi/plugin/idea/actions/CreateAsyncAPISchema.kt rename to src/main/kotlin/com/asyncapi/plugin/idea/actions/CreateAsyncAPISpecification.kt index 19e7e99..ac61c1a 100644 --- a/src/main/kotlin/com/asyncapi/plugin/idea/actions/CreateAsyncAPISchema.kt +++ b/src/main/kotlin/com/asyncapi/plugin/idea/actions/CreateAsyncAPISpecification.kt @@ -10,17 +10,17 @@ import com.intellij.psi.PsiDirectory /** * @author Pavel Bodiachevskii */ -class CreateAsyncAPISchema: CreateFileFromTemplateAction( - "AsyncAPI schema", - "Create a AsyncAPI schema from the specified template", +class CreateAsyncAPISpecification: CreateFileFromTemplateAction( + "AsyncAPI Specification", + "Create AsyncAPI specification from the specified template", Icons.ASYNCAPI_ICON ), DumbAware { override fun buildDialog(project: Project, directory: PsiDirectory, builder: CreateFileFromTemplateDialog.Builder) { builder .setTitle("New API Specification") - .addKind("AsyncAPI schema (yaml)", Icons.ASYNCAPI_ICON, "AsyncAPI schema (yaml).yaml") - .addKind("AsyncAPI schema (json)", Icons.ASYNCAPI_ICON, "AsyncAPI schema (json).json") + .addKind("AsyncAPI 2 (.yaml)", Icons.ASYNCAPI_ICON, "AsyncAPI schema (yaml).yaml") + .addKind("AsyncAPI 2 (.json)", Icons.ASYNCAPI_ICON, "AsyncAPI schema (json).json") } override fun getActionName(directory: PsiDirectory?, newName: String, templateName: String?): String { diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index fa1bcce..738932e 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -61,7 +61,7 @@ - +