From e214a42abeba57846a248fe5dba13f21e80021ba Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Mon, 25 Sep 2017 13:02:09 +0200 Subject: [PATCH] =?UTF-8?q?RunManagerImpl=20=E2=80=94=20introduce=20reload?= =?UTF-8?q?Schemes=20method=20for=20MPS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Internal usage only. --- .../src/com/intellij/execution/impl/RunManagerImpl.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/lang-impl/src/com/intellij/execution/impl/RunManagerImpl.kt b/platform/lang-impl/src/com/intellij/execution/impl/RunManagerImpl.kt index a6c1c8cd1f3a..9964fd580646 100644 --- a/platform/lang-impl/src/com/intellij/execution/impl/RunManagerImpl.kt +++ b/platform/lang-impl/src/com/intellij/execution/impl/RunManagerImpl.kt @@ -620,6 +620,12 @@ open class RunManagerImpl(internal val project: Project) : RunManagerEx(), Persi return methodElement } + // used by MPS. Do not use if not approved. + fun reloadSchemes() { + workspaceSchemeManager.reload() + projectSchemeManager.reload() + } + override fun noStateLoaded() { isFirstLoadState.set(false) projectSchemeManager.loadSchemes()