Added example code – MyProjectActivity

This commit is contained in:
Jakub Chrzanowski 2025-03-11 10:15:57 +01:00
parent 356fe6caaf
commit a8f4883cb9
3 changed files with 17 additions and 0 deletions

View File

@ -4,6 +4,10 @@
## [Unreleased]
### Added
- Example code `MyPostStartupActivity`
### Removed
- Example code `MyApplicationActivationListener`

View File

@ -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`.")
}
}

View File

@ -10,5 +10,6 @@
<extensions defaultExtensionNs="com.intellij">
<toolWindow factoryClass="org.jetbrains.plugins.template.toolWindow.MyToolWindowFactory" id="MyToolWindow"/>
<postStartupActivity implementation="org.jetbrains.plugins.template.startup.MyProjectActivity" />
</extensions>
</idea-plugin>