diff --git a/platform/testGuiFramework/src/com/intellij/testGuiFramework/recorder/actions/ShowGuiEditorWindowAction.kt b/platform/testGuiFramework/src/com/intellij/testGuiFramework/recorder/actions/ShowGuiEditorWindowAction.kt index 9c732cfbe684..e2f2c64800d4 100644 --- a/platform/testGuiFramework/src/com/intellij/testGuiFramework/recorder/actions/ShowGuiEditorWindowAction.kt +++ b/platform/testGuiFramework/src/com/intellij/testGuiFramework/recorder/actions/ShowGuiEditorWindowAction.kt @@ -26,7 +26,7 @@ import com.intellij.testGuiFramework.recorder.ui.GuiScriptEditorFrame class ShowGuiEditorWindowAction() : AnAction() { override fun actionPerformed(p0: AnActionEvent?) { - val frame = GuiRecorderComponent.getFrame() + val frame = GuiRecorderComponent.frame if (frame == null) { GuiScriptEditorFrame() } diff --git a/platform/testGuiFramework/src/com/intellij/testGuiFramework/recorder/actions/SyncEditorAction.kt b/platform/testGuiFramework/src/com/intellij/testGuiFramework/recorder/actions/SyncEditorAction.kt index 03fc1f1ae61f..28007dad8848 100644 --- a/platform/testGuiFramework/src/com/intellij/testGuiFramework/recorder/actions/SyncEditorAction.kt +++ b/platform/testGuiFramework/src/com/intellij/testGuiFramework/recorder/actions/SyncEditorAction.kt @@ -26,10 +26,10 @@ import com.intellij.testGuiFramework.recorder.ui.Notifier */ class SyncEditorAction : ToggleAction(null, "Synchronize Editor with Generated GUI Script", AllIcons.Actions.Refresh) { - override fun isSelected(e: AnActionEvent?): Boolean = if (GuiRecorderComponent.getFrame() != null) GuiRecorderComponent.getFrame()!!.isSyncToEditor() else false + override fun isSelected(e: AnActionEvent?): Boolean = if (GuiRecorderComponent.frame != null) GuiRecorderComponent.frame!!.isSyncToEditor() else false override fun setSelected(e: AnActionEvent?, toSync: Boolean) { - val frame = GuiRecorderComponent.getFrame() ?: return + val frame = GuiRecorderComponent.frame ?: return frame.setSyncToEditor(toSync) if (toSync) Notifier.updateStatus("Synchronization is on")