Fix EDU-690 No tooltips in view hints popup

This commit is contained in:
Valentina Kiryushkina
2016-07-28 20:45:20 +03:00
parent 972f5ff49d
commit 2dd5bd4718
@@ -62,7 +62,8 @@ class StudyHint(private val myPlaceholder: AnswerPlaceholder?, project: Project)
}
}
private inner class GoForward : AnAction(AllIcons.Actions.Forward) {
private inner class GoForward : AnAction("Next Hint", "Next Hint", AllIcons.Actions.Forward) {
override fun actionPerformed(e: AnActionEvent) {
studyToolWindow.setText(myPlaceholder!!.hints[++myShownHintNumber])
@@ -73,7 +74,7 @@ class StudyHint(private val myPlaceholder: AnswerPlaceholder?, project: Project)
}
}
private inner class GoBackward : AnAction(AllIcons.Actions.Back) {
private inner class GoBackward : AnAction("Previous Hint", "Previous Hint", AllIcons.Actions.Back) {
override fun actionPerformed(e: AnActionEvent) {
studyToolWindow.setText(myPlaceholder!!.hints[--myShownHintNumber])
@@ -138,7 +139,7 @@ class StudyHint(private val myPlaceholder: AnswerPlaceholder?, project: Project)
}
}
private inner class AddHint : AnAction(AllIcons.General.Add) {
private inner class AddHint : AnAction("Add Hint", "Add Hint", AllIcons.General.Add) {
override fun actionPerformed(e: AnActionEvent) {
myPlaceholder!!.hints.add(newHintDefaultText)
@@ -151,7 +152,7 @@ class StudyHint(private val myPlaceholder: AnswerPlaceholder?, project: Project)
}
}
private inner class RemoveHint : AnAction(AllIcons.Actions.Cancel) {
private inner class RemoveHint : AnAction("Remove Hint", "Remove Hint", AllIcons.Actions.Cancel) {
override fun actionPerformed(e: AnActionEvent) {
myPlaceholder!!.hints.removeAt(myShownHintNumber)