File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
ide-common/src/main/kotlin/org/digma/intellij/plugin/reload Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,12 @@ package org.digma.intellij.plugin.reload
22
33import com.intellij.openapi.Disposable
44import com.intellij.openapi.components.Service
5+ import com.intellij.openapi.project.ProjectManager
56import com.intellij.openapi.util.Disposer
67import org.digma.intellij.plugin.common.EDT
8+ import org.digma.intellij.plugin.common.isProjectValid
79import org.digma.intellij.plugin.errorreporting.ErrorReporter
10+ import org.digma.intellij.plugin.ui.MainToolWindowCardsController
811import org.digma.intellij.plugin.ui.panels.ReloadablePanel
912
1013@Service(Service .Level .APP )
@@ -26,6 +29,16 @@ class ReloadService {
2629
2730
2831 fun reload () {
32+ ProjectManager .getInstance().openProjects.forEach {
33+ try {
34+ if (isProjectValid(it)) {
35+ MainToolWindowCardsController .getInstance(it).wizardFinished()
36+ }
37+ } catch (e: Throwable ) {
38+ ErrorReporter .getInstance().reportError(" ReloadService.reload" , e)
39+ }
40+ }
41+
2942 reloadables.forEach {
3043 EDT .ensureEDT {
3144 try {
You can’t perform that action at this time.
0 commit comments