IFT-482 Fix debugger tool window step in onboarding lessons

GitOrigin-RevId: 04f7e1349d67a30b54cf15dd7b271da146d614fe
This commit is contained in:
Konstantin Hudyakov
2023-07-18 12:29:38 +00:00
committed by intellij-monorepo-bot
parent d78e514c5c
commit c1d2faa12e
3 changed files with 17 additions and 3 deletions
@@ -338,6 +338,11 @@ class JavaOnboardingTourLesson : KLesson("java.onboarding", JavaLessonsBundle.me
JavaLessonsBundle.message("java.onboarding.start.debugging", icon(AllIcons.Actions.StartDebugger))
}
lateinit var debuggerGotItTaskId: TaskContext.TaskId
task {
debuggerGotItTaskId = taskId
}
highlightDebugActionsToolbar()
task {
@@ -346,7 +351,7 @@ class JavaOnboardingTourLesson : KLesson("java.onboarding", JavaLessonsBundle.me
JavaLessonsBundle.message("java.onboarding.balloon.about.debug.panel",
strong(UIBundle.message("tool.window.name.debug")),
strong(LessonsBundle.message("debug.workflow.lesson.name"))))
restoreIfModified(sample)
restoreByUi(debuggerGotItTaskId)
}
highlightButtonById("Stop", highlightInside = false, usePulsation = false)
@@ -427,11 +427,15 @@ fun LessonContext.highlightDebugActionsToolbar(highlightInside: Boolean = false,
triggerUI().component { ui: XDebuggerEmbeddedComboBox<XExpression> -> ui.isEditable }
}
waitBeforeContinue(500)
waitBeforeContinue(defaultRestoreDelay)
task {
highlightToolbarWithAction(ActionPlaces.DEBUGGER_TOOLBAR, "Resume", highlightInside, usePulsation)
}
}
fun LessonContext.highlightOldDebugActionsToolbar(highlightInside: Boolean = false, usePulsation: Boolean = false) {
highlightDebugActionsToolbar(highlightInside, usePulsation)
task {
if (!ExperimentalUI.isNewUI() && !UIExperiment.isNewDebuggerUIEnabled()) {
highlightToolbarWithAction(ActionPlaces.DEBUGGER_TOOLBAR, "ShowExecutionPoint",
@@ -249,6 +249,11 @@ class PythonOnboardingTourLesson :
PythonLessonsBundle.message("python.onboarding.start.debugging", icon(AllIcons.Actions.StartDebugger))
}
lateinit var debuggerGotItTaskId: TaskContext.TaskId
task {
debuggerGotItTaskId = taskId
}
highlightDebugActionsToolbar()
task {
@@ -257,7 +262,7 @@ class PythonOnboardingTourLesson :
PythonLessonsBundle.message("python.onboarding.balloon.about.debug.panel",
strong(UIBundle.message("tool.window.name.debug")),
strong(LessonsBundle.message("debug.workflow.lesson.name"))))
restoreIfModified(sample)
restoreByUi(debuggerGotItTaskId)
}
highlightButtonById("Stop", highlightInside = false, usePulsation = false)