mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fix EDU-935 ClassNotFoundException Move class to PyCharm Edu IDE src
This commit is contained in:
-26
@@ -1,26 +0,0 @@
|
||||
package com.jetbrains.edu.learning;
|
||||
|
||||
import com.intellij.openapi.actionSystem.KeyboardShortcut;
|
||||
import com.intellij.openapi.fileEditor.impl.EditorEmptyTextPainter;
|
||||
import com.intellij.openapi.keymap.KeymapUtil;
|
||||
import com.intellij.util.ui.UIUtil;
|
||||
import com.jetbrains.edu.learning.actions.*;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
public class PyStudyInstructionPainter extends EditorEmptyTextPainter {
|
||||
private static final String separator = " / ";
|
||||
@Override
|
||||
protected void advertiseActions(@NotNull JComponent splitters, @NotNull UIUtil.TextPainter painter) {
|
||||
String shortcut = KeymapUtil.getShortcutText(new KeyboardShortcut(KeyStroke.getKeyStroke(StudyNextWindowAction.SHORTCUT2), null));
|
||||
appendAction(painter, "Navigate to the next answer placeholder", shortcut);
|
||||
appendAction(painter, "Navigate between answer placeholders", getActionShortcutText(StudyPrevWindowAction.ACTION_ID) + separator +
|
||||
getActionShortcutText(StudyNextWindowAction.ACTION_ID));
|
||||
appendAction(painter, "Navigate between tasks", getActionShortcutText(StudyPreviousTaskAction.ACTION_ID) + separator +
|
||||
getActionShortcutText(StudyNextTaskAction.ACTION_ID));
|
||||
appendAction(painter, "Reset current task file", getActionShortcutText(StudyRefreshTaskFileAction.ACTION_ID));
|
||||
appendAction(painter, "Check task", getActionShortcutText(StudyCheckAction.ACTION_ID));
|
||||
appendAction(painter, "Get hint for the answer placeholder", getActionShortcutText(StudyShowHintAction.ACTION_ID));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user