From a8f4883cb9df0a4d62e1f157db155716718024dd Mon Sep 17 00:00:00 2001 From: Jakub Chrzanowski Date: Tue, 11 Mar 2025 10:15:57 +0100 Subject: [PATCH] =?UTF-8?q?Added=20example=20code=20=E2=80=93=20`MyProject?= =?UTF-8?q?Activity`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 ++++ .../plugins/template/startup/MyProjectActivity.kt | 12 ++++++++++++ src/main/resources/META-INF/plugin.xml | 1 + 3 files changed, 17 insertions(+) create mode 100644 src/main/kotlin/org/jetbrains/plugins/template/startup/MyProjectActivity.kt diff --git a/CHANGELOG.md b/CHANGELOG.md index e416e10..1da151f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ ## [Unreleased] +### Added + +- Example code – `MyPostStartupActivity` + ### Removed - Example code – `MyApplicationActivationListener` diff --git a/src/main/kotlin/org/jetbrains/plugins/template/startup/MyProjectActivity.kt b/src/main/kotlin/org/jetbrains/plugins/template/startup/MyProjectActivity.kt new file mode 100644 index 0000000..87e9e65 --- /dev/null +++ b/src/main/kotlin/org/jetbrains/plugins/template/startup/MyProjectActivity.kt @@ -0,0 +1,12 @@ +package org.jetbrains.plugins.template.startup + +import com.intellij.openapi.diagnostic.thisLogger +import com.intellij.openapi.project.Project +import com.intellij.openapi.startup.ProjectActivity + +class MyProjectActivity : ProjectActivity { + + override suspend fun execute(project: Project) { + thisLogger().warn("Don't forget to remove all non-needed sample code files with their corresponding registration entries in `plugin.xml`.") + } +} \ No newline at end of file diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 910aa5c..a580663 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -10,5 +10,6 @@ +