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]
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Example code – `MyPostStartupActivity`
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
- Example code – `MyApplicationActivationListener`
|
- 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">
|
<extensions defaultExtensionNs="com.intellij">
|
||||||
<toolWindow factoryClass="org.jetbrains.plugins.template.toolWindow.MyToolWindowFactory" id="MyToolWindow"/>
|
<toolWindow factoryClass="org.jetbrains.plugins.template.toolWindow.MyToolWindowFactory" id="MyToolWindow"/>
|
||||||
|
<postStartupActivity implementation="org.jetbrains.plugins.template.startup.MyProjectActivity" />
|
||||||
</extensions>
|
</extensions>
|
||||||
</idea-plugin>
|
</idea-plugin>
|
||||||
|
Loading…
Reference in New Issue
Block a user