Skip to content

Commit

Permalink
replaced StartupActivity with ProjectActivity
Browse files Browse the repository at this point in the history
  • Loading branch information
dkandalov committed Oct 1, 2024
1 parent 3b1dca5 commit cdb4f18
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/limitedwip/autorevert/components/AutorevertComponent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package limitedwip.autorevert.components

import com.intellij.openapi.application.ModalityState
import com.intellij.openapi.project.Project
import com.intellij.openapi.startup.StartupActivity
import com.intellij.openapi.startup.ProjectActivity
import limitedwip.autorevert.AutoRevert
import limitedwip.autorevert.ui.AutoRevertStatusBarWidget
import limitedwip.common.TimerAppComponent
Expand All @@ -11,8 +11,8 @@ import limitedwip.common.vcs.SuccessfulCheckin
import limitedwip.common.vcs.defaultChangeList
import limitedwip.common.vcs.invokeLater

class AutoRevertComponentStartup: StartupActivity {
override fun runActivity(project: Project) = AutoRevertComponent(project).start()
class AutoRevertComponentStartup: ProjectActivity {
override suspend fun execute(project: Project) = AutoRevertComponent(project).start()
}

class AutoRevertComponent(private val project: Project) {
Expand Down
6 changes: 3 additions & 3 deletions src/limitedwip/tcr/components/TcrComponent.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package limitedwip.tcr.components

import com.intellij.openapi.project.Project
import com.intellij.openapi.startup.StartupActivity
import com.intellij.openapi.startup.ProjectActivity
import com.intellij.openapi.vcs.changes.Change
import limitedwip.common.settings.LimitedWipSettings
import limitedwip.common.toPathMatchers
Expand All @@ -11,8 +11,8 @@ import limitedwip.tcr.Tcr
import limitedwip.tcr.Tcr.ChangeListModifications
import limitedwip.tcr.Tcr.Settings

class TcrComponentStartup: StartupActivity {
override fun runActivity(project: Project) = TcrComponent(project).start()
class TcrComponentStartup: ProjectActivity {
override suspend fun execute(project: Project) = TcrComponent(project).start()
}

private class TcrComponent(private val project: Project) {
Expand Down
6 changes: 3 additions & 3 deletions src/limitedwip/watchdog/components/WatchdogComponent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package limitedwip.watchdog.components

import com.intellij.openapi.application.ModalityState
import com.intellij.openapi.project.Project
import com.intellij.openapi.startup.StartupActivity
import com.intellij.openapi.startup.ProjectActivity
import com.intellij.openapi.vcs.changes.Change
import limitedwip.common.TimerAppComponent
import limitedwip.common.settings.LimitedWipSettings
Expand All @@ -14,8 +14,8 @@ import limitedwip.common.vcs.invokeLater
import limitedwip.watchdog.Watchdog
import limitedwip.watchdog.ui.WatchdogStatusBarWidget

class WatchdogComponentStartup: StartupActivity {
override fun runActivity(project: Project) = WatchdogComponent(project).start()
class WatchdogComponentStartup: ProjectActivity {
override suspend fun execute(project: Project) = WatchdogComponent(project).start()
}

class WatchdogComponent(private val project: Project) {
Expand Down

0 comments on commit cdb4f18

Please sign in to comment.