mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[gui-tests] Fix compilation
This commit is contained in:
+1
-1
@@ -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()
|
||||
}
|
||||
|
||||
+2
-2
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user