diff --git a/CHANGELOG.md b/CHANGELOG.md index 453de5a..cb79197 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,10 +6,11 @@ ### Added - Migrate to Gradle Provider API improving configuration cache compatibility +- Example code - `FrameStateListener` application listener ### Changed -- GitHub Actions: pass changelog release notes as a multi-line content -- GitHub Actions: provide `plugin.verifier.home.dir` variable as a system property instead of project property +- GitHub Actions - pass changelog release notes as a multi-line content +- GitHub Actions - provide `plugin.verifier.home.dir` variable as a system property instead of project property - Template Cleanup: remove default `pluginIcon.svg` icon - Upgrade Gradle Wrapper to `8.0.1` - Dependencies - upgrade `org.jetbrains.kotlin.jvm` to `1.8.10` @@ -18,10 +19,11 @@ - Dependencies (GitHub Actions) - upgrade `gradle/wrapper-validation-action` to `v1.0.6` ### Fixed -- Resolving the content for the `patchPluginXML.changeNotes` proeprty +- Resolving the content for the `patchPluginXML.changeNotes` property ### Removed - Example code - application service +- Example code - deprecated `ProjectManagerListener` application listener ## [1.4.0] - 2023-01-13 diff --git a/src/main/kotlin/org/jetbrains/plugins/template/listeners/MyFrameStateListener.kt b/src/main/kotlin/org/jetbrains/plugins/template/listeners/MyFrameStateListener.kt new file mode 100644 index 0000000..1577f83 --- /dev/null +++ b/src/main/kotlin/org/jetbrains/plugins/template/listeners/MyFrameStateListener.kt @@ -0,0 +1,14 @@ +package org.jetbrains.plugins.template.listeners + +import com.intellij.ide.FrameStateListener +import com.intellij.openapi.diagnostic.thisLogger + +internal class MyFrameStateListener : FrameStateListener { + + override fun onFrameActivated() { + thisLogger().info("Frame activated") + + System.getenv("CI") + ?: TODO("Don't forget to remove all non-needed sample code files with their corresponding registration entries in `plugin.xml`.") + } +} diff --git a/src/main/kotlin/org/jetbrains/plugins/template/listeners/MyProjectManagerListener.kt b/src/main/kotlin/org/jetbrains/plugins/template/listeners/MyProjectManagerListener.kt deleted file mode 100644 index 40bcf15..0000000 --- a/src/main/kotlin/org/jetbrains/plugins/template/listeners/MyProjectManagerListener.kt +++ /dev/null @@ -1,16 +0,0 @@ -package org.jetbrains.plugins.template.listeners - -import com.intellij.openapi.components.service -import com.intellij.openapi.project.Project -import com.intellij.openapi.project.ProjectManagerListener -import org.jetbrains.plugins.template.services.MyProjectService - -internal class MyProjectManagerListener : ProjectManagerListener { - - override fun projectOpened(project: Project) { - project.service() - - System.getenv("CI") - ?: TODO("Don't forget to remove all non-needed sample code files with their corresponding registration entries in `plugin.xml`.") - } -} diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index e7f5927..4bfa615 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -13,7 +13,7 @@ - +