From b6ca8fd48ecfe6ee660c8f7a9e9f0789f0053ea1 Mon Sep 17 00:00:00 2001 From: Ilnar Agliamzianov Date: Thu, 21 Nov 2024 14:14:35 +0200 Subject: [PATCH] Separate cosmos module in base and java parts --- .../.idea/gradle.xml | 1 + .../build.gradle.kts | 28 +++++++ .../IntellijJavaCosmosActionsContributor.java | 72 +++++++++++++++++ ...nctionAnnotationCompletionContributor.java | 0 ...eCosmosDBResourceReferenceContributor.java | 0 ...smosDBContainerNameCompletionProvider.java | 0 ...osmosDBDatabaseNameCompletionProvider.java | 0 .../CosmosDBFunctionPathAnnotator.java | 0 ...ndraCosmosDBAccountResourceDefinition.java | 33 ++++++++ ...ongoCosmosDBAccountResourceDefinition.java | 27 +++++++ .../SqlCosmosDBAccountResourceDefinition.java | 79 +++++++++++++++++++ .../azure-intellij-plugin-cosmos-java.xml | 13 +++ .../build.gradle.kts | 3 - .../IntelliJCosmosActionsContributor.java | 47 ----------- ...draCosmosDBAccountResourceDefinition.java} | 23 +----- ...ngoCosmosDBAccountResourceDefinition.java} | 17 +--- ...SqlCosmosDBAccountResourceDefinition.java} | 62 +-------------- .../META-INF/azure-intellij-plugin-cosmos.xml | 6 -- .../build.gradle.kts | 1 + .../settings.gradle.kts | 1 + .../src/main/resources/META-INF/plugin.xml | 1 + 21 files changed, 263 insertions(+), 151 deletions(-) create mode 100644 PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-cosmos-java/build.gradle.kts create mode 100644 PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-cosmos-java/src/main/java/com/microsoft/azure/toolkit/intellij/cosmos/IntellijJavaCosmosActionsContributor.java rename PluginsAndFeatures/azure-toolkit-for-intellij/{azure-intellij-plugin-cosmos => azure-intellij-plugin-cosmos-java}/src/main/java/com/microsoft/azure/toolkit/intellij/cosmos/code/function/AzureCosmosDBFunctionAnnotationCompletionContributor.java (100%) rename PluginsAndFeatures/azure-toolkit-for-intellij/{azure-intellij-plugin-cosmos => azure-intellij-plugin-cosmos-java}/src/main/java/com/microsoft/azure/toolkit/intellij/cosmos/code/function/AzureCosmosDBResourceReferenceContributor.java (100%) rename PluginsAndFeatures/azure-toolkit-for-intellij/{azure-intellij-plugin-cosmos => azure-intellij-plugin-cosmos-java}/src/main/java/com/microsoft/azure/toolkit/intellij/cosmos/code/function/CosmosDBContainerNameCompletionProvider.java (100%) rename PluginsAndFeatures/azure-toolkit-for-intellij/{azure-intellij-plugin-cosmos => azure-intellij-plugin-cosmos-java}/src/main/java/com/microsoft/azure/toolkit/intellij/cosmos/code/function/CosmosDBDatabaseNameCompletionProvider.java (100%) rename PluginsAndFeatures/azure-toolkit-for-intellij/{azure-intellij-plugin-cosmos => azure-intellij-plugin-cosmos-java}/src/main/java/com/microsoft/azure/toolkit/intellij/cosmos/code/function/CosmosDBFunctionPathAnnotator.java (100%) create mode 100644 PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-cosmos-java/src/main/java/com/microsoft/azure/toolkit/intellij/cosmos/connection/CassandraCosmosDBAccountResourceDefinition.java create mode 100644 PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-cosmos-java/src/main/java/com/microsoft/azure/toolkit/intellij/cosmos/connection/MongoCosmosDBAccountResourceDefinition.java create mode 100644 PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-cosmos-java/src/main/java/com/microsoft/azure/toolkit/intellij/cosmos/connection/SqlCosmosDBAccountResourceDefinition.java create mode 100644 PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-cosmos-java/src/main/resources/META-INF/azure-intellij-plugin-cosmos-java.xml rename PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-cosmos/src/main/java/com/microsoft/azure/toolkit/intellij/cosmos/connection/{CassandraCosmosDBAccountResourceDefinition.java => BaseCassandraCosmosDBAccountResourceDefinition.java} (68%) rename PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-cosmos/src/main/java/com/microsoft/azure/toolkit/intellij/cosmos/connection/{MongoCosmosDBAccountResourceDefinition.java => BaseMongoCosmosDBAccountResourceDefinition.java} (76%) rename PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-cosmos/src/main/java/com/microsoft/azure/toolkit/intellij/cosmos/connection/{SqlCosmosDBAccountResourceDefinition.java => BaseSqlCosmosDBAccountResourceDefinition.java} (56%) diff --git a/PluginsAndFeatures/azure-toolkit-for-intellij/.idea/gradle.xml b/PluginsAndFeatures/azure-toolkit-for-intellij/.idea/gradle.xml index 6cb7b0faf15..52027d471be 100644 --- a/PluginsAndFeatures/azure-toolkit-for-intellij/.idea/gradle.xml +++ b/PluginsAndFeatures/azure-toolkit-for-intellij/.idea/gradle.xml @@ -21,6 +21,7 @@