Skip to content

Commit

Permalink
Migrated com.github.intellij.plugins.mt4ij.activities.ProjectStartupA…
Browse files Browse the repository at this point in the history
…ctivity to ProjectActivity.
  • Loading branch information
antonio-petricca committed Apr 24, 2024
1 parent d980da0 commit 352befe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# maven-templating-for-intellij Changelog

## [1.4.2]

- Migrated com.github.intellij.plugins.mt4ij.activities.ProjectStartupActivity to ProjectActivity.

## [1.4.1]

- Declared compatibility with 2024.1.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pluginGroup = com.github.intellij.plugins.mt4ij
pluginName = maven-templating-for-intellij
# SemVer format -> https://semver.org
pluginVersion = 1.4.1
pluginVersion = 1.4.2

# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.github.intellij.plugins.mt4ij.listeners.MavenProjectsManagerListener
import com.github.intellij.plugins.mt4ij.listeners.VFSListener
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.project.Project
import com.intellij.openapi.startup.StartupActivity
import com.intellij.openapi.startup.ProjectActivity
import com.intellij.openapi.vfs.VirtualFileManager
import org.jetbrains.idea.maven.project.MavenProjectsManager

Expand All @@ -20,7 +20,7 @@ import org.jetbrains.idea.maven.project.MavenProjectsManager
https://plugins.jetbrains.com/docs/intellij/plugin-listeners.html#defining-application-level-listeners
*/

class ProjectStartupActivity : StartupActivity {
class ProjectStartupActivity : ProjectActivity {
private val log : Logger = Logger.getInstance(ProjectStartupActivity::class.java)

private fun registerMavenListener(project: Project) {
Expand All @@ -40,7 +40,7 @@ class ProjectStartupActivity : StartupActivity {
.subscribe(VirtualFileManager.VFS_CHANGES, VFSListener(project))
}

override fun runActivity(project: Project) {
override suspend fun execute(project: Project) {
registerMavenListener(project)
registerVFSListener(project)

Expand Down

0 comments on commit 352befe

Please sign in to comment.