mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2025-06-06 09:34:12 +00:00
Added example code – MyProjectActivity
This commit is contained in:
parent
356fe6caaf
commit
a8f4883cb9
@ -4,6 +4,10 @@
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
|
||||
- Example code – `MyPostStartupActivity`
|
||||
|
||||
### Removed
|
||||
|
||||
- Example code – `MyApplicationActivationListener`
|
||||
|
@ -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`.")
|
||||
}
|
||||
}
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user