diff --git a/python/educational-core/student/src/com/jetbrains/edu/learning/actions/StudyShowHintAction.java b/python/educational-core/student/src/com/jetbrains/edu/learning/actions/StudyShowHintAction.java index 818eb917c2b5..8cea369440a8 100644 --- a/python/educational-core/student/src/com/jetbrains/edu/learning/actions/StudyShowHintAction.java +++ b/python/educational-core/student/src/com/jetbrains/edu/learning/actions/StudyShowHintAction.java @@ -29,7 +29,6 @@ import org.jetbrains.annotations.Nullable; import javax.swing.*; import java.awt.*; -import java.util.LinkedList; public class StudyShowHintAction extends StudyActionWithShortcut { public static final String ACTION_ID = "ShowHintAction"; @@ -67,19 +66,8 @@ public class StudyShowHintAction extends StudyActionWithShortcut { return; } EduUsagesCollector.hintShown(); - LinkedList hints = new LinkedList<>(); - if (answerPlaceholder != null) { - hints.addAll(answerPlaceholder.getHints()); - //final ArrayList strings = new ArrayList<>(); - //strings.add(answerPlaceholder.getHints()); - //strings.add("test"); - //hints.addAll(strings); - } - else { - hints.add(ourWarningMessage); - } + final StudyToolWindow hintComponent = new StudyHint(answerPlaceholder, project).getStudyToolWindow(); - showHintPopUp(project, studyState, editor, hintComponent); }