mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IFT-482 Fix debugger tool window step in onboarding lessons
GitOrigin-RevId: 04f7e1349d67a30b54cf15dd7b271da146d614fe
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d78e514c5c
commit
c1d2faa12e
+6
-1
@@ -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",
|
||||
|
||||
+6
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user