[gui-tests] Fix compilation

This commit is contained in:
Maxim.Kolmakov
2017-10-09 13:04:16 +02:00
parent 77c6f78c56
commit b74b235510
2 changed files with 3 additions and 3 deletions
@@ -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()
}
@@ -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")